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.183.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2fdbd1bae33f389c4544e01d284b3e7a145beb740a056fb1389ca8864f4055 |
|
MD5 | 8afc6a07c5a715ea6acc1b7b19f38d1b |
|
BLAKE2b-256 | cc4c9b54fffe309a67a7ec429d33e97bc4b0913c67c9d3a94f639be4ebe1b52d |
Close
Hashes for pepperize.cdk_security_group-0.0.183-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed732bbe5fb73b4158d412bcd4d86185f39bb89c487e2e1d0b7409800ca0c5f5 |
|
MD5 | b2468f7ec78a76d6d8631c5f8851baff |
|
BLAKE2b-256 | b48569030c98f43e096673fdf14943474a5fcbd562ce7b527cc8086bcfa21158 |