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.181.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44945e0ff681bbdb8727feb817777b16aca815fca7c7df91eea256a246f7152c |
|
MD5 | 1c5857db061632db2ebe3e8d7f0cce9d |
|
BLAKE2b-256 | 4c2c6685b4f7e7fa8b43d8fbd93d650e5718cf92faf02e56a9a4ab7c1562adb7 |
Close
Hashes for pepperize.cdk_security_group-0.0.181-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc3d35a831db5819f08b711392d45bf37f1debe98a31f2ae11e69098ec6d271c |
|
MD5 | 63ef58bbf4d7071b66356270a50c00e5 |
|
BLAKE2b-256 | bc3fdb57bc13d1dce3842ca95ba7f8a886e72809f748288758df6460eddf2c9f |