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.335.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8a325078ac39b9691a70fa4030f73ed9bb023252f1ee35e2dbe9853365eb996 |
|
MD5 | cb64d89ec707f9fd7ff7185430647200 |
|
BLAKE2b-256 | ae4a78078c42782a268e44d77ac94dcbaba26eeb5887d241c8b68f3c30091a9a |
Close
Hashes for pepperize.cdk_security_group-0.0.335-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d13a26dcf1dfd4c3b35dfded5c89fe0b35acb1399da023cdc8131728d357ed |
|
MD5 | 1bb08dac9a7338b889f3ca307a0e7604 |
|
BLAKE2b-256 | d0e16cf1d8f5426f031230164d454eff8314eddf7a488d33fc78b92372aee689 |