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.517.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d159adc1a7a4536af45f552506eedc4596bc70247f89caffb75e8fed7e58ae1 |
|
MD5 | 60b33c559f14ca9f4cd430c1b5b51752 |
|
BLAKE2b-256 | 20d87b5f950ca00df9969042097060f409fb2d6f8c76fa31b0f95518d57bf371 |
Close
Hashes for pepperize.cdk_security_group-0.0.517-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8beba7044683211116231b4b2bb4def854e107a61c8581cf966a81020947ca27 |
|
MD5 | 65fc798a17692d594b2e12964c5add3e |
|
BLAKE2b-256 | f2ae8305c60985672cd3ff811aa71563561dafbfafd3329648affe34b40e5ee5 |