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.133.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dddad7374f036c41f9c19f25121067ffd124c2fc390e2998ca767c2814cf85f5 |
|
MD5 | 4fa6510be855f5b0f04bd6f2bee6375f |
|
BLAKE2b-256 | 085af7bb9aa83eb2278a56cdfe31d48e253ddf852d16a6af4a6e3a30224b48af |
Close
Hashes for pepperize.cdk_security_group-0.0.133-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 705a55f8437a898f954c20fa72250388e658e00c05699f285b79056afc7fa49d |
|
MD5 | 622789bf51f3f698eb4008669790dd76 |
|
BLAKE2b-256 | fa44d76e4374206a99b0ea83fd637462e8602ea7758e07d2462dad2e073f6446 |