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.394.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ac5263f909ed7a1d94b0b1d6bd73c7a086c03ffd8915e9b08adff2bb53663dcc |
|
MD5 | f5324b6f1b16d22f6b5b637a24150254 |
|
BLAKE2b-256 | 564d67082e224f2ede2feaef9265d649c6a3773977daf80aed5bea99e4bb69eb |
Close
Hashes for pepperize.cdk_security_group-0.0.394-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fca7e82381849181757793be17b9a3d1b875e091c62bb1ab212d48d0a6ebcb5f |
|
MD5 | 3da0a006276742036a779f40da908030 |
|
BLAKE2b-256 | 6c6dbd514b8058131f758f18d77b53c3df8479c6364f4d1e5912ea0f4be10d6d |