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.161.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b546f7c1af9c5e3a45e1eb6c1e7bb9789a1c7ce9136bf770b334fec5f532252c |
|
MD5 | d34da21e7688d9aa4f650ce0ae6c1612 |
|
BLAKE2b-256 | 927f4bab6dcec92a8f873299c86e247fafe53cb08a190e8b11fd76206089eebf |
Close
Hashes for pepperize.cdk_security_group-0.0.161-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41034c11fea3e5e6c90ecb399c8601e5aeadad90c849c3b1c60231e2d620c284 |
|
MD5 | 2501aff61d9242de07d1dd3ee16130c7 |
|
BLAKE2b-256 | 6c530cf87be669b9059fbb3708f328e4c1ae929db790ace115556592f1f9cd97 |