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.127.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f8792a94ebe985853cdfe94f7608f842127aa4c4c8497a101fdd9e16c06c026 |
|
MD5 | 17a2928ce18c04c97f9834e21b016314 |
|
BLAKE2b-256 | 47136b1dccb10e03490ce0abcad7fc6322b48b07960878a3b10b51b3c1964cfe |
Close
Hashes for pepperize.cdk_security_group-0.0.127-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffaae18ec0f9ae8de1877df954b94b9142c0c1d1d2bd5f60c309a53546744a1f |
|
MD5 | 97831891600228925a6262226273f549 |
|
BLAKE2b-256 | c80295b8188cc955fb96036c891c8ffe583d0b289971f452152b2bc4e6b297ae |