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.527.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d97641b3dd7a26a260c1c5e826c67a47a810f4253c41dc5f3aa65a39b6f9efad |
|
MD5 | 8a06a4c38f115ec1d8a102421feada88 |
|
BLAKE2b-256 | da57416e281e0eb0ea50870badbf8e966a73e8f61cf51a96387587b0efb8e0ba |
Close
Hashes for pepperize.cdk_security_group-0.0.527-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 802603d5a35f1b55ba463287106be6ff8bd1d658da6c515db5a5fb45bd316806 |
|
MD5 | 2a1a03e5772f17d0afd7918f7e36d107 |
|
BLAKE2b-256 | 5e064128b16f73c8a18f526a4e95ff2e62dc905cd77d661f686cdf8d92328f7f |