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.503.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bd631d6324f7048c11264405aac16eb2945f7c89faf5c39a26be61c96b639d9 |
|
MD5 | e8c4f598d2b1b377ad4f664059aaccb2 |
|
BLAKE2b-256 | b7f5241af14fb2c09b2448e525e7bce69089d96e41eb2ea620a9fea4806cbb7d |
Close
Hashes for pepperize.cdk_security_group-0.0.503-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2c0569b5be7d24f7f5bfabc3cf5d4170381f11420b31845b521802961fe73e5 |
|
MD5 | 3ddc3e8d1cd8b413cd7918171479c2a1 |
|
BLAKE2b-256 | aed608b4aa7e3210b001d04dcb45db051722f49aac5b2b962cbee3a76a1ffd2d |