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.276.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3b772f051a7655e20911498ebc735a08112e3f1168ec4b1f4194376526dbf0 |
|
MD5 | b5b89659800c35b6e0fa552ec901e8cc |
|
BLAKE2b-256 | 65dad25656348632a153ea061d2bc0d627ff4c8cb15a392103a93070782e65d9 |
Close
Hashes for pepperize.cdk_security_group-0.0.276-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b835eb16e552ae87fe4703b82fa41f3e687c5163fc08a34ee090f38421385f |
|
MD5 | 266455399f2076a2694bcf6601d3b0ac |
|
BLAKE2b-256 | b18845009ff9dd69188e5b9d9faf71f58b6551e3db2062b9e2c120f1a15dd1d2 |