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.441.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f54ee10834378208497843089b26541744f653aebf85544e528b7609e6f467be |
|
MD5 | 15ca7c1932927815a6e81a3fa0ab21af |
|
BLAKE2b-256 | 82217166bbe81689590bed6c6d341ac24e4b43e09d731da00cf03bc15acf0a00 |
Close
Hashes for pepperize.cdk_security_group-0.0.441-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3c346f71f2f3f9fabec5885aad9700f49152ed6d487b2d806f6392635a1a677 |
|
MD5 | ed4b44a34e6a17555fed14378e6e3503 |
|
BLAKE2b-256 | c1ab82f412b7d8aa629c09d37371064ec7b161c251e0d08102ba6917306d1f05 |