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.356.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4721ecf373517f2c17a70428cc3c98f4d18494ab133549cfd19695e71e4d9b7 |
|
MD5 | 9b4446bf649c5517057f2bafc19cf987 |
|
BLAKE2b-256 | 6e3f686f9515f49c7ad13e0ee49946938dcb5475d3aed6a55cfee989ec6beea8 |
Close
Hashes for pepperize.cdk_security_group-0.0.356-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fc66505117875aa0b67f754fd9ff3b759e93a2a5c11a31d4cd8eccdf01a5eca |
|
MD5 | 016a34416f52d0ce7542a25017c1eaac |
|
BLAKE2b-256 | 186627cae84f859a7dc04fd3730c0c56714dc5f3fce0c115984778592c360bf2 |