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.405.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b39a183e07d81d966d8ffa4844f180f9650c37fb35e06e10eb32ab14b6e1e6d |
|
MD5 | 07046ad9afee2a0a0f56a6b325cd48a8 |
|
BLAKE2b-256 | 51d5f498e32b45924fe03b41942b0b17fd8f19941a704a5fb328bbd6a3bd2dbb |
Close
Hashes for pepperize.cdk_security_group-0.0.405-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ceea5f603c746c5ce105543f023ba425e66f4585eac48900ac592266779b7370 |
|
MD5 | b415ea3823310c1a8dee6abdeadb8150 |
|
BLAKE2b-256 | 93ed7a3609855c18feb1b3eb4745c88295efee60e7f9f948498150e3d77415b5 |