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.199.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfa97895327930664126135da9c05a9e57d60eaee141a1cbde18d19522b4f228 |
|
MD5 | 82f982c5c5f4ff0fd4b6c07d47e3bd25 |
|
BLAKE2b-256 | b041efbb5d1a9e0bebafd4fad7f925eb3fe378efcbb735fdf93f9ab73521e017 |
Close
Hashes for pepperize.cdk_security_group-0.0.199-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c9c0d461fc11becbe0ac2bf3ab1edc9e282d91b0a7f8c9d9b22a204a757c7a5 |
|
MD5 | 3efde259a6878d731527257e4d20b94d |
|
BLAKE2b-256 | 6ad5efad4f0772613ca285595f35b8528d0b7b7eca0ef1c0862f269c88c97c5c |