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.251.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a298993dde09cbc6d43f0d89830a4b3b976f576c2efa032b26269cc113a8fe3 |
|
MD5 | a0330f8bbeb2d6659fcfd1232969ba66 |
|
BLAKE2b-256 | 9901a0cfde8f4ee4ef4df8c10c37c457a915b0e414195fc26ff564a1df15e6b9 |
Close
Hashes for pepperize.cdk_security_group-0.0.251-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b69196c35d5f858d5ba615a0ec5050639a708ecf164c0d486223a0b33e902ba0 |
|
MD5 | 7707ac80311c953d0d9169fb7aed6846 |
|
BLAKE2b-256 | e907a4e35b8d8519dbe17efb164b1136bf5ecc0f899d9e4f17b7e0d445ca82b9 |