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.152.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5526f1a61379fdcfeb26a61e9ce4dc6b9d26dfaa45e04d85d4f174995fba4269 |
|
MD5 | 448e1df0f6ee98e8a56216e39e548e43 |
|
BLAKE2b-256 | db625d3b2c561ca82152048cb111ed531ec5b3eda36f0342c5b9ad77fad2fd84 |
Close
Hashes for pepperize.cdk_security_group-0.0.152-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58a0f7e5e6479fc41d10274bba1938aa0545a81b49385969feb7aa5f9435225e |
|
MD5 | 0a77bcc13a8ef1742fdfff0193d4e992 |
|
BLAKE2b-256 | 31124e9e73b2ba4a32735de42b9e218505f3a9238cd49d6c742f0262c375eb74 |