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.118.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de25c31779067c10d86d3c152ccdffd08402a30d951a29bd78c032c5dd8241bd |
|
MD5 | 05c3a1317985153eb17c225691c1d6c9 |
|
BLAKE2b-256 | dc0cd2e788562e7373449f87b5c3d6070bb4152b9a918fca5c0febfd5b904069 |
Close
Hashes for pepperize.cdk_security_group-0.0.118-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5e70676560ce1d8af101089ac30e2d6c532c4a081328558f18a70d9f9a3e3f |
|
MD5 | fcb944fa6b074f608aae48672b296eea |
|
BLAKE2b-256 | c7897376ac772de8d794afc34db65265ca43043c5b49e0bebc7a3457b9d138fc |