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.327.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1c24810adff550511fccf77e104b1e47fa0d7748d9a9726d1cf55b01edcd01c |
|
MD5 | 4b93071cb1d118c39006a9bd571c7046 |
|
BLAKE2b-256 | 6c9be27056e8a47f36c8baa8766175c5756cc279439605844e14940b13298cce |
Close
Hashes for pepperize.cdk_security_group-0.0.327-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d143ff0d0f0392ed355c6dcae8468664b514d950d24a4bff12487edd018aec14 |
|
MD5 | 1d078a04f202110f6529961cd1da84c0 |
|
BLAKE2b-256 | c8ca83083b0b350a7404b33a1e17614eb0f07c16377aef1095d8b0af65c36044 |