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.537.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2ed51e5aecfa6d5a69b4225fc4eb53ea2bba10182636cec71e7bda51db136b |
|
MD5 | b3caaaef4e372366cdae573499b99d8c |
|
BLAKE2b-256 | 65e09eb6f53facc5f932b53c44dee5aa7db52d255b85a4d99a6f3ae2c911b2c7 |
Close
Hashes for pepperize.cdk_security_group-0.0.537-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c0ba59df622977c4ad7958f8c802ed78b1de7901fd311fac3c0df4ccfc9959 |
|
MD5 | 21b2fd1072766f8389f97acb240a74e5 |
|
BLAKE2b-256 | 81588c7f51c06e4df553c9e82a07c41f50f2024dbce8ccd1d1ac9c198fa6d486 |