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.179.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81991e924a1f0525696669800febec9167d46e3fe2e584807b51bdffe46301df |
|
MD5 | db621a4b127ddf585eabb51f94ec729c |
|
BLAKE2b-256 | 704a4fe9d63266e6826e4e0bb6726bfd3e725339fdcb53ed59afa5c05b61fbb3 |
Close
Hashes for pepperize.cdk_security_group-0.0.179-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d24b31b88a08b90665001f70d458fc2f165085b680f117d304bae3d7f4380c6 |
|
MD5 | a15b63279000cca5cb513f5478bfc263 |
|
BLAKE2b-256 | 830cd649d8ffe442c7a59d628e29fe59bf468e30286ba63b9107c437e948bc83 |