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.235.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175bf42275096288be4a9b401547b2c2d79a0c988de899c43575cae5f162e23f |
|
MD5 | f65270f42fae42fcc8525dcb93b63caa |
|
BLAKE2b-256 | cc9c960cfaa72376aea4f7ea7df21d5af000e7961781a0b1a3f6d8446af4a753 |
Close
Hashes for pepperize.cdk_security_group-0.0.235-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae053e795b0643ce17155a2b397d3174c4050f64bb18e4c9c9a48d4d62af3f27 |
|
MD5 | 11a0b59797504325c372372ee71e6698 |
|
BLAKE2b-256 | 4ce5734127afc792e449849f3826abc5a4439ca8f75d89b767d062451279de21 |