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.463.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8084372dbd3aff3d5d08d66d14be5e5b368213946214e00f69472abedbd62d69 |
|
MD5 | c6b44eac3e2b6297072d4cfedafd7b66 |
|
BLAKE2b-256 | 54a20b27fad86ac19220cd7b25a7f353d436290cdbfa6373c2af2a13d3964949 |
Close
Hashes for pepperize.cdk_security_group-0.0.463-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 921f40f4dec3938d72a21db2e89d447ae2b51e89abe55034fcc661e593fd8c65 |
|
MD5 | 65c77be22b8e6549c677e37e14f00430 |
|
BLAKE2b-256 | 366a75f3e42260eda85963594562f9b1e3aa95cb79c827955827d94df8d7d617 |