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.481.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee21736847ee485a4e56d369836f3da4b55948572191993452677bdcfee3027c |
|
MD5 | 1246bc7dd07a0288432c099b4de06826 |
|
BLAKE2b-256 | 57127e748ea7b6a8f86f42667ee26fdcb26a3821d9ada5e290d04129b7a96bc2 |
Close
Hashes for pepperize.cdk_security_group-0.0.481-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 618dd7c3abb3dfa1ebe5b637cca5a23e1ba680c6a68258216380a785e68425a4 |
|
MD5 | 9291092746049407791b26401aee1eef |
|
BLAKE2b-256 | 4bb98cf19497cc02b043f4a6cd91eab37fe534833074a83119817c2f48b361c4 |