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.410.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b14a8b1ed977be836e81e506ff2875fc77c91a91dc536f4e7296b22a4ef57ebc |
|
MD5 | 334d4f8a985d27992efae9339439ca45 |
|
BLAKE2b-256 | 9219f563170676b2c6d9740b7f1e79eb69ccdcb84b36b618dfbe8c1f2001ce3d |
Close
Hashes for pepperize.cdk_security_group-0.0.410-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3b939e86e308980b1b78de074f5c70f913dce43f9adb15eb632a82e5ae9d4a5 |
|
MD5 | 8f461c6b4abd84697d1e8abb2a16045e |
|
BLAKE2b-256 | fa523837993aa5209e87ae5e92b6114f33161f519dd4bd31378096ac24081964 |