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.115.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3299daa0a0dee5e6e120525effe172b223e553194d4e977b99ab66688a461ef |
|
MD5 | c4c0e03aa708bc628ae06404ecdc07a4 |
|
BLAKE2b-256 | 45f15f3f6b97c6673607cbc2d9dc301798c70d4a338ce2c5a4ea3b66a98da17b |
Close
Hashes for pepperize.cdk_security_group-0.0.115-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff9bbd6a39c014abcf547afab83069e768da82d5bc2b72b24d26d74c78ea420b |
|
MD5 | 3e96eebcbc1f85af8724cd9c80c0382e |
|
BLAKE2b-256 | bbb5d06ff84571d2d131b8383ea19f3d03f65deaf32ad64614aabd207d1f74d0 |