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.231.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59fb3ab3c1c7123820e5842a4050851c944ecf08222bdc5fc373bd8ab2b62b92 |
|
MD5 | ec9503b6993c975133ae967a22bb0e4b |
|
BLAKE2b-256 | 3ca6640e8c623d19a9c5702f38de2adaef0e2d8f32a73b57e144bb6c7ebc2fb0 |
Close
Hashes for pepperize.cdk_security_group-0.0.231-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 854817874dc9660f57e3d4cf8d57cd4d4ecb26f1ad9ad86347f2e84bd1946067 |
|
MD5 | 7bb388d88e46450d16451b8584c965e9 |
|
BLAKE2b-256 | 1df25ca930148e131498101c61cbdd312900f8a2c4dc360cfcd3be58ea8d4827 |