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.263.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1174a1e2058856a6a227e78a826084d5efe00b1195d853dfa73b24817d88d3d1 |
|
MD5 | 6a44dce4ee285b05430d98d2c96ae7e5 |
|
BLAKE2b-256 | ea30045514095e3b6a717aa3266011f336675a62f25556b9dac8f6ac44b2c852 |
Close
Hashes for pepperize.cdk_security_group-0.0.263-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c86672261794706a1b0274cfb0d96928aeb8a2a6d1720643cb741cb0457b76c |
|
MD5 | 16022b5b9cefafed38a62b11572f6cd7 |
|
BLAKE2b-256 | 48e495416cbb593f096b3e9f02200412955f42f92f32b27756cec2324baf8d94 |