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.137.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa45f9d1653b49ebcff50fa6d74e2de2034b0bc703acb14a84ebb02a49aa99c8 |
|
MD5 | 4efbc7b44cf2b291ab3d291db501c966 |
|
BLAKE2b-256 | 8de288f9e5c0072ccb409aa3c22c50b5805a8623681bef9e5504b98e79ed22b6 |
Close
Hashes for pepperize.cdk_security_group-0.0.137-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9117c34cbacf79ea3b501327e3662d6146e69a62d6c2cb94a46afa2877f434a1 |
|
MD5 | 2c0068940daa21ed145a843387b0c554 |
|
BLAKE2b-256 | 72bea3c303ec221bbb7e412dfd10f04ec6d42208f926385f3c014b05d77f9223 |