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.319.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a26e223e59c2fa3837ef7087d4f9286edba7923e61c5f758859646f70ddaed32 |
|
MD5 | 272f3596ffbe657478f6bdb941c3d08f |
|
BLAKE2b-256 | c904db1c4832a4dacfec6a54ee4247abef84fc3a1ee095b544488c666e9318c9 |
Close
Hashes for pepperize.cdk_security_group-0.0.319-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fc52409b3204f6c1be6b71eee994e8bd81cf6f7c19867464b4351b1fa063ada |
|
MD5 | 8bd7441c4e5ac30074ccee899e8171d0 |
|
BLAKE2b-256 | 5a6cb2c079c68255be17e35b7a252b2b8c8982a81c73928736590c0a8140053b |