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.474.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94b1fb9215425e4910a0a4585f3b99c9e2aea280e09856e2a60ad18a5f103e24 |
|
MD5 | 9e9b2bc792f29e1e7ed7e3e41bb5aef8 |
|
BLAKE2b-256 | b158d89abf998f8a6db03f08f3f21f641de2bb2c5af1d505d2d01f600461b6a0 |
Close
Hashes for pepperize.cdk_security_group-0.0.474-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bcd88315203b39ba9d959893930bf976ad5ea8fe1bb5df4cf3355b38e9a21cf8 |
|
MD5 | de323fe9dbc321bbc10d632abe8bf481 |
|
BLAKE2b-256 | eabd615e0f1670a591932c2259f5b10a01e429ca73a1b63528d3bbe49b885564 |