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.141.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9add02c25d20338178f01a2cdfeee42a2e734fed102b1fef771f59b6be7edee7 |
|
MD5 | 1be9a30f7eee3e60c14e6ff1f5f9c79a |
|
BLAKE2b-256 | ea994925ef2fab7e1568e60e555c4dc263a428805b636e3eace5910116f9e17b |
Close
Hashes for pepperize.cdk_security_group-0.0.141-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67a836d1625443368859aa82bccd7a067de74d88090b19c3c27760994f1d6224 |
|
MD5 | 74ad31575e03a78cb450d1c1317865ee |
|
BLAKE2b-256 | d1cc89e018fbf683aebe962929625971934f62d71befb8bd63f432051a1918bd |