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.493.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 313a49fc94d8f526d2916ff2a781118f1c2d7c0edde9971c22784bd1e7802080 |
|
MD5 | b7ecaa926354d44969e7d852f8cb8ce2 |
|
BLAKE2b-256 | a84e25b097b9f9caeaaa8a4c68221ab42638598c588c230dcd099123a5badfd3 |
Close
Hashes for pepperize.cdk_security_group-0.0.493-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f0edeefe7977330560e071610c792af9d9f3f901e6547b54997f6ff0c6a5d7e |
|
MD5 | c94bc874bcee2c0911ff413f81dda0b0 |
|
BLAKE2b-256 | 75af56fd782bd31841cce8bdbbffa7f8db6e29e2e500f8dd6aef2364a8c81741 |