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.355.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f588f217cf936c60fb3e86e10c498d6215cd8911f41e0e652acebd2bdd8d4cf3 |
|
MD5 | 9dc981c45050fc741d945180f594e2be |
|
BLAKE2b-256 | 9821eef377c297e331a992a8416e4f6986d4ee510c6182349086d4434a22cb6b |
Close
Hashes for pepperize.cdk_security_group-0.0.355-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e947602e256e158fdcc4af1488d19faebaa068dcb5463eae064e67e2dc681979 |
|
MD5 | f0d6ec64e0d3a6d1cf30683fe3df106e |
|
BLAKE2b-256 | 1fddc523f5c02f357dac67ca1c82dbc6a1b3adfe826f661193a34116bc088a77 |