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.299.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae2087d1a57913aa7279e92fa316bba38f39a36ea52acf23131524aaf8ebb572 |
|
MD5 | 32dc90ff53fece08c23206fe147e7abc |
|
BLAKE2b-256 | 1cb0da18c3560197b197517c9edea5a814fb7a666c17a90696a30a94a0859250 |
Close
Hashes for pepperize.cdk_security_group-0.0.299-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a661111f422b76e546ae4cc099cc9a8db68e1aced476455a071179c66995803 |
|
MD5 | 5554963df2a64cd4bda3b8b3ae164827 |
|
BLAKE2b-256 | 0b56114d9963000be0dc53fb4fee976aad37471295d3027b98e947e86600a4dd |