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.352.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c8a7e3c1506fd5a033afaeaf5dfb6d08711ba267df84c6c992b8e9dbb843eea |
|
MD5 | 5123d2ee40c4638e58a231964da07b74 |
|
BLAKE2b-256 | c4027d51867b525a81857e42f4d1d0c7b6f1d698c6b573abc4e4bad94f31aa54 |
Close
Hashes for pepperize.cdk_security_group-0.0.352-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56f0419d3a7ed4491af3a39b44487717e9878d553a8226695574e9df2edc02c1 |
|
MD5 | b66f8ae705ea15e65457a00561697eb9 |
|
BLAKE2b-256 | 43a9d916436a4aef8a53923eddeadeb333e8a490b6594769c3cdf9171a7197cf |