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.437.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 958a6d98068d6801ad704357839a561c197fcf71d332f5c1da847329819b351d |
|
MD5 | 460ec3ecf84416d6ce2900e9ab0c339d |
|
BLAKE2b-256 | 0a24a24de847abe7c1d8b060a989abcec8b21586f3d8d5e421eb6b8916d68e04 |
Close
Hashes for pepperize.cdk_security_group-0.0.437-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff38c8a9b889402fda1fe197b4b98e9e6e20d1aefef432ec30173ab5be7937e0 |
|
MD5 | 74bab89c615e4997b119cc0cad9b013c |
|
BLAKE2b-256 | d8e6328b268329618fda545d01f9fee21612637d9d186fa476a92ee470cde5cd |