This project provides a CDK construct to create an EC2 SecurityGroup, which property `securityGroupName` returns the GroupName.
Project description
AWS CDK SecurityGroup
This project provides a CDK construct to create an EC2 SecurityGroup, which property securityGroupName
returns the
GroupName.
The CDK EC2 SecurityGroup returns the GroupId from the
Ref
return value of AWS::EC2::SecurityGroup, rather than the GroupName.
Install
TypeScript
npm install @pepperize/cdk-security-group
or
yarn add @pepperize/cdk-security-group
Python
pip install pepperize.cdk-security-group
C# / .Net
dotnet add package Pepperize.CDK.SecurityGroup
Java
<dependency>
<groupId>com.pepperize</groupId>
<artifactId>cdk-security-group</artifactId>
<version>${cdkSecurityGroup.version}</version>
</dependency>
Example
npm install @pepperize/cdk-security-group
See API.md.
import { SecurityGroup } from "@pepperize/cdk-security-group";
const securityGroup = new SecurityGroup(this, "SecurityGroup", {});
// Pass to another construct
new OtherConstruct(this, OtherConstruct, {
SecurityGroupName: securityGroup.securityGroupName,
});
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pepperize.cdk-security-group-0.0.483.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d26680fbe6cdbbd9d78ee4e27e257e4b1d964021d9d0fb124d6271a1f32b767e |
|
MD5 | 2e2b6a1d99a5582d85eeabae920e184a |
|
BLAKE2b-256 | ac30b7b41885412d97274aa2b1a423759db996b5f6c64a3072af50ed28c8f20d |
Close
Hashes for pepperize.cdk_security_group-0.0.483-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c86192f18281a33a34d94afbfdaccd7e521cce187532ca500a2d609fed1a7738 |
|
MD5 | 3edcef9a88c11dc1dd8b82c732652b43 |
|
BLAKE2b-256 | 6e57c04d4f8ca088e1b7ab3bf4bb57fb433e56ed53fa572c1b2767531340c934 |