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.548.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d69806e607766ada378bac51c43400679a867ac74c4099ff364d05d89328b6c0 |
|
MD5 | bbe85e519aca0e4df329736c64d10fd6 |
|
BLAKE2b-256 | 6b1e1c28ddc083e77a1955343070cdc59ef128ade8548672be0c6e511d979bdd |
Close
Hashes for pepperize.cdk_security_group-0.0.548-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e606a2060851b24e559b57e55268d6aa032bc8ac092e42a43e35db7e23582a94 |
|
MD5 | 1f69f25846de3bd597ef82d6415b95c3 |
|
BLAKE2b-256 | cf6ecd3d85ff0407cc26504dc93d30d255c31c0b25c742175a203dd14b4e4a5e |