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.268.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a102da8abb7664a4b59880d7fb8cc5f046758f1f3ce8e5696dbd42c79a76d48c |
|
MD5 | 1c2797378f66612f028f7f5315ce5287 |
|
BLAKE2b-256 | eb1e8797357e7e731c3d7c1248c1403a685fc6c3fc4900388f0319e906d69b4d |
Close
Hashes for pepperize.cdk_security_group-0.0.268-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6b04cb2817e9a24608f31da439ca4a2583a263ce46590b74a95c84f6d2eb78 |
|
MD5 | 62a35bf741beaa77ef2bcb868f26696d |
|
BLAKE2b-256 | f17268628008d94c2bff8d3773bb96cd8f1214dfc319e8c79fe264c2f9b25e4d |