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.337.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d6293c9f512f02a79e089df3e099d839930b5c4dcb5f94627d28a46e240d58 |
|
MD5 | 230d7bb5d0c6b8b0f0ed49bb84d6a393 |
|
BLAKE2b-256 | 0bb57f10a6ba7718b29b0685ce617b0945f472e9a029198d757fb1a2b50341f6 |
Close
Hashes for pepperize.cdk_security_group-0.0.337-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bb1c65a27d12ae5391d1d081ffca14548b4e8ab0b285d8b77a663176a5cebc4 |
|
MD5 | b9db25b5476e7fb5be0cd083bdeba91d |
|
BLAKE2b-256 | 668760d810bd1a26666c1ae686bd0f9a00e23f1f745a251dd13640e5591c4a16 |