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.374.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf7512d6b2a4264def49385fbd5c520bd79cd21c16e44923b8b88948bff92df |
|
MD5 | 464762d57274c0912432e2466b04bed8 |
|
BLAKE2b-256 | 09a16ea949f6541a745a24b8410eddf3cfe4049392a573f44eae0249bbe9ac56 |
Close
Hashes for pepperize.cdk_security_group-0.0.374-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51d77642e7785d9a71a45101817fb7944fb5f409ac100e37b9e25ac96714fd75 |
|
MD5 | ceedc6bd43c0d8951b0f0cf626274e92 |
|
BLAKE2b-256 | aea098a1f7834398a94f252ff26f8694df6a5afc374c00f265363871e68266a0 |