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.530.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f79234621d725cc048fd1aeecee107fb24b67bc8ecf9eeb9fe3f323afe8d2561 |
|
MD5 | c19f845a4baf9435ab57f624d7393617 |
|
BLAKE2b-256 | 839a73297695f2e588be2edb088e61030b0d8051ba9744aa58fe8bd14926b4fa |
Close
Hashes for pepperize.cdk_security_group-0.0.530-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | baf28fc3b7b4557363ac4b6cb2d19f700338b7b5d6fd88d2219251fad1b708df |
|
MD5 | f225e86f5974b39c2b4360470979d6bd |
|
BLAKE2b-256 | 089cb7a163f22d613b1ae973778b47fa2076cee56155797942384beb696bd535 |