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.377.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d36edbd8d643bfaf8fd551797761a6a7bee1841adac826d436be690de309eba |
|
MD5 | f354c210a524c85bf397f2f8d4e5d142 |
|
BLAKE2b-256 | 106a3210435a207c356265415be79773824b281917a67ec8b5076567eb7ac73f |
Close
Hashes for pepperize.cdk_security_group-0.0.377-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2449fa62d933809562e2adcaaa16481375d2a9affba14c3567fcc07d2923bb0b |
|
MD5 | 633c7c4a7bfce1e916e280f7c7ccc993 |
|
BLAKE2b-256 | e5d1bf252e958fb0b4d92372381d7da1f9a60bd7779db274bb8749e5e5d5f943 |