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.421.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7764c180b4fe555666e84f79ca7986e1c3183f152ea3a32b815700463beb64e4 |
|
MD5 | 528c548f8afd1770b0ffea9d63dfd62a |
|
BLAKE2b-256 | 0c43eb6a698c523463ff0b0896b0e4b3aa3f12c80fe90ba067b150262c0bfb83 |
Close
Hashes for pepperize.cdk_security_group-0.0.421-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b752a342591fa667796f434c6eb7e45c4d9929033797fff448d1a8ceb2d35b2 |
|
MD5 | 5fdc0a6f1bc73582781098ba768acdf1 |
|
BLAKE2b-256 | 262da8a0371ebb41925611e3de1e6a0aeac1c8637bd4b72fa58995cd3635009c |