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.373.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09adf0bbd6aa34ebb336a0262533b5bd66d3d60f8850273dabad14421c9ce25c |
|
MD5 | 0de8a234e29833795390639a9ed7fd53 |
|
BLAKE2b-256 | 59ce61d717f9931df6774058f964c961ab1bb039bdcc82b1a714d57babfe84eb |
Close
Hashes for pepperize.cdk_security_group-0.0.373-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df05cfb2b14e9eb3da4360ad3bc3e1a691b5bf020654524842f2fa5099661d89 |
|
MD5 | 9de7099c7789ba26ca9a0933e66b0b41 |
|
BLAKE2b-256 | ec28a9f23361a36fafbd38f88b3570ed613663bcf5c52f054803124a5707d2b4 |