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.265.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 497c51411ce09723f3f7f036f668199c2f5f2506a191c4a2ba6ca7512046b13e |
|
MD5 | 21bced09463767c41f5866a8495e20bb |
|
BLAKE2b-256 | aaf02faaacc69746cbe686205cb1609dbaa13bb6e53bc9070007772af6dfd366 |
Close
Hashes for pepperize.cdk_security_group-0.0.265-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112b01fe40792396e25884843a16d20827a9d3304ecc116d52b4c7d509dde56e |
|
MD5 | c80aba4a30b87b30e4e0b85456c8082b |
|
BLAKE2b-256 | 2145d67ae0312a2aac9df634545b7f0f52c5033571242732d894f5d8c8cce91f |