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.163.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27a9095b0038fe7c9961427fd67951aba65ec6fd829cba8e76527182597ff5c3 |
|
MD5 | 743fa113e9ecff3e8b57605c79e97b91 |
|
BLAKE2b-256 | 999f0490ac56ed339c6487005ff4037cfa6a33c2f7d07f2ab5c2a9dc2e3cbb10 |
Close
Hashes for pepperize.cdk_security_group-0.0.163-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c2777dff31e92d845a4001381abb8e21d74d08df5f66635e23186f3c4b6453e |
|
MD5 | a036a1d7c65f42f81afd2a24e0fd31e4 |
|
BLAKE2b-256 | 619f270aa6e7d61a0a03480d77e1460ec5f270e893fa4a70a7d4e719e4d5e14f |