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.378.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6fa54f558fa1ef5d542c73bf37463b204d44afa6701b964f0582b71aea1e820 |
|
MD5 | 2a5c7c9820124eac40e83fd94ef4500d |
|
BLAKE2b-256 | 5a41cbf947a01d1bc7383557ac41eb2759c56a999fe6a0766667579e6cdaf456 |
Close
Hashes for pepperize.cdk_security_group-0.0.378-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0d231a00e03b0d0cf412d5dba073773b16b4bece97bfd15f0893af58e84dd7c |
|
MD5 | 1d7c903f2b8c94372ce9657ddb96cb99 |
|
BLAKE2b-256 | e850a2e0675bc1d1784f4124cedb629668b69aa69f61e060661e9c0ae7388236 |