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.226.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4a35f4d2615edfa46246097bba143a17ff2c62a964215644a29ff9a889c34d9 |
|
MD5 | bf7cb290ac1b2579d5b48090f4d7faa2 |
|
BLAKE2b-256 | 03890b4340b6db88b509c392dc7f975218d5b6b2e4513df2b242df24dd6b0c8b |
Close
Hashes for pepperize.cdk_security_group-0.0.226-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33e360f4edcade657ef4388e9e937ef8b503aec58b483eaa25202023ccf4d59f |
|
MD5 | 19b3f82eb919442519d4879c5f588553 |
|
BLAKE2b-256 | 618815b97314889d15c47bcd6192c44ff264f549b908353672f10f8066750097 |