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.204.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6156dacafbd626a415be3a76f0a06a585feba2abece6dfc39c3c7b17773e6c |
|
MD5 | 7aecb7e9aacaf9bd585a82e429e8c05d |
|
BLAKE2b-256 | 6f29e394382ef49ef0ec8d69d2eb7edfddf4d02e3eb661025cb68e1b1d2f0a23 |
Close
Hashes for pepperize.cdk_security_group-0.0.204-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4649785023e6f898cf3146a97ff5bb3c03b03a4ef9ee22bf9424eed34f4e92ae |
|
MD5 | 7db702fbc2aa02b13d368eaf1cd8305f |
|
BLAKE2b-256 | 8276573968035c4ede7eaaacb8a0eb7d76876b2fa61b499b2254e04ff7fb6d70 |