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.177.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fafdaf5da47d2dddbed64b38176154ba7c51e63b3f2c2ab30ac8ecab5429581 |
|
MD5 | fd2eb8ebfae1a0eb2c5ede0a5bc4d61c |
|
BLAKE2b-256 | 27dbd4c3ee9df940f34bc7298b4714f2b9b444338c3ef09add2af2e961f01451 |
Close
Hashes for pepperize.cdk_security_group-0.0.177-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b44c918deb9df593ba60989578241cd5140e2acdf4bf51262954d254e4a79c61 |
|
MD5 | 061638aa6f679c4e601d00b0228c7318 |
|
BLAKE2b-256 | a1bf78328aeec2fafa408f032b7db10043f53f3622c04932eb4e2fdeebbb45fe |