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.224.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c438d8fba1f81cd7c60bbb8845644f77b7c7e27fb897357faf374478644a7a5 |
|
MD5 | 8bef8088d04ecb52de0538e9b55057ce |
|
BLAKE2b-256 | 282203c9b9a79c41a8fe602075064437c5098e9ab4d563ad915f41c6bf4cc1c0 |
Close
Hashes for pepperize.cdk_security_group-0.0.224-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98f6251060e3bd52961bfed03f83e8e88c846483611cbb5a08ab725e952b274e |
|
MD5 | 08297fd5171446321049a69e21ef0aee |
|
BLAKE2b-256 | ac89817796ec1c70cf00d2791c11258e1cd90402760bb60ca8599bd8ca2fdb93 |