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.194.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 839342a4cb7b6f88ed8f2b77cbb4f4dd64f065ed0b0ae003dce7c17fe1c6e4c4 |
|
MD5 | af7385b59b13a0cc95bab2f3af0f17c4 |
|
BLAKE2b-256 | 85c16df1376df15884fe6a0af670c77f605074ade4f5ced3928f6621cc3a59de |
Close
Hashes for pepperize.cdk_security_group-0.0.194-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3d839bc076e5c543ccbc0711b31432f6281e98a5e993851a34e7dc5145df2ec |
|
MD5 | 60b9a8028f93ac035ce54f78c1f8d111 |
|
BLAKE2b-256 | ba9884af0484344a2741d99b620c8cf79bb52aa8bff781a45a0f7a5bc8c57038 |