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.392.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d0dd84ede2921e4a5b61dbadaca7ad345b3ca0a2c75ce21085d7cee67c586c5 |
|
MD5 | 0e7d46d263e2d63b7d3ec1250b6503e7 |
|
BLAKE2b-256 | ba9694401304765914bf2bd7017c5e1f8ec3b94d5492ba402d288c34ad945105 |
Close
Hashes for pepperize.cdk_security_group-0.0.392-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196c1c13a24c1f1ddd0705fcb53362d9e4f520f66029f240cdbc196ac5b78e34 |
|
MD5 | 9b880741f3af4962f2f1b532f38ea930 |
|
BLAKE2b-256 | 5c5dd41f56ae62ca7efcca3ef5621b7a91117829d2c85bf26f1798c31c472101 |