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.383.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8d4215f0a40e5b96aa8f99f6f40262ef86efa449e3c0505386b4952d30dc1d7 |
|
MD5 | 19061815c82b2a08c00ca6cc8fbeb893 |
|
BLAKE2b-256 | 00ab4c3186239e518f2b2e0b9d2740d99a036fdb6223b9cb8bfba1c9aef6f8c5 |
Close
Hashes for pepperize.cdk_security_group-0.0.383-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 484396baeec45e5925fbb2129849be726e27d80b8fe64e8c346e36a57cbf0ba7 |
|
MD5 | ca4830c10362e61af1b408ea14cc2087 |
|
BLAKE2b-256 | 0f7fc3653715fc7a29c50dd8f51358c2209063d95b2d37dd209866733844a644 |