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.154.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad0b80785f17502a35557eabc30dd7d1029ece27a28e62c83fc6c731807aaa03 |
|
MD5 | 10b42bb95e54b6f2be65d225c0edbdcd |
|
BLAKE2b-256 | c1595a3466ffdfaaa19c922efcace52059854fb9f7759117ff3314e833eb54ff |
Close
Hashes for pepperize.cdk_security_group-0.0.154-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c8b7a5fb0728bc96f196ed2deae0f3da9f2f199b48e8e1299f41d0d848a5b23 |
|
MD5 | 9666be21cd22718966727dd7eed68660 |
|
BLAKE2b-256 | bce70c95e2f0b07dcbae7de9f31c80cedf30fb43e60dadcd919e031415285d0c |