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.363.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f211fe2de248116e4f54dae5c5f975842fdb0d4b0bd6dcda57b0cad60d193473 |
|
MD5 | 67598ea0064d6606894b976fd85aa74f |
|
BLAKE2b-256 | 6f66f27d3afd203595141d8e1d45c3f8432ae8ca67ba1823510626f33d2f424c |
Close
Hashes for pepperize.cdk_security_group-0.0.363-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab290e594f1a8e1a7c28c15295f3c95331877c3d8360520aad2d29138e1ebe9e |
|
MD5 | fb954e1ffffe8cf8ccd36d2c0031c622 |
|
BLAKE2b-256 | 11ebb4cefffe9c252d110c8c8c60cd6fcae3d4122edb88383927ae29502876ae |