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.166.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49e4219a937ebd083a8cafc269e7cf8c290c923af443312f59af374470b21ada |
|
MD5 | 9898df0a08f138453a2d8ef5282f21ba |
|
BLAKE2b-256 | 350e67a810f1e436a16b2862ec676e9ab9974a0a2929a6d71f355c3058e7d5fe |
Close
Hashes for pepperize.cdk_security_group-0.0.166-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab7e143c52cd2b327c8c6d6b91b6418849e97eab64585edc5c47aa3a64175b90 |
|
MD5 | a5c1bcdd9df95c75f6fad0e731032e2a |
|
BLAKE2b-256 | a05323ddd0d26e01ce916d9d6a015051e05413e81611bbd2795fe9d0b0fdbdc5 |