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.304.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fa94fbfcb0543cbfd2c97c52bc1fd15fec4b80ac663b7c7bbca0a64a964ed1e |
|
MD5 | 068450a38201c8461d426eeeeadcc141 |
|
BLAKE2b-256 | 156ca1f4c0be956a296ad6fb1aad6bc047ed1b137517796f44d22509381a5b62 |
Close
Hashes for pepperize.cdk_security_group-0.0.304-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85220daa8d43e67726b88da5e97919a062fccce1db7e90885e348b7677fa069d |
|
MD5 | 748c5050c474c0ad44d6d42617bbc193 |
|
BLAKE2b-256 | ae26a1e03c12ade28696dda0dc71f3337977b4308681833058addb0dfcef8e1e |