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.253.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0505ba08b1de8e971e527949cb806f7e346988863063bef19159ba9562c035 |
|
MD5 | acd4b8422192c011d6604164b547258a |
|
BLAKE2b-256 | 75b8709874047a3fd3d6474d77d7c5689ec97e700b6ae4889854ed8fada2c568 |
Close
Hashes for pepperize.cdk_security_group-0.0.253-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec9b0cbcda44198751affac9c3e3915acca60d9bf8a6a43aa4776d31164d72b |
|
MD5 | ec7c48135a1d9aa1cd0f11eabc020c8b |
|
BLAKE2b-256 | 3f5229ace435672351ff867911d6430c75aa5b98d0f63d1a348ada4ca418d57a |