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.330.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3581f6eecc3cb090931fbadf9b57d8f68f4867c8e13a102d2d4e69e85ecbd249 |
|
MD5 | 94ce42d7bd338bfae221772963ace100 |
|
BLAKE2b-256 | d4828e44247684ec14166089ffcda1672a88d244b00d582dd21783da451ac19b |
Close
Hashes for pepperize.cdk_security_group-0.0.330-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774b5e539570d81fdc03b1db6f575295e68d2294cee2ca5b2333490df2c97417 |
|
MD5 | e8deaec467f95b8c38dd207a72fce052 |
|
BLAKE2b-256 | e96ffb6cf74d100f9395eae3a001ee6d45880949a2051f9f7d5bdac5de84f9ef |