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.412.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a74bb4f81744264b4597a2b0c919a70eb75dea138b45235484551794c62b4da |
|
MD5 | 4a26f32b12dc1937229ab198a0aac7c9 |
|
BLAKE2b-256 | 0e7565f5606c0e832cb051692489a8726e303233ce326615b338ea1ad0462699 |
Close
Hashes for pepperize.cdk_security_group-0.0.412-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f55fe48769effcc4729a79530c700103446f9c4e2727312cfbaf47e57f7e8b1 |
|
MD5 | 0bc6593d4af8cb0388f0489c79f87972 |
|
BLAKE2b-256 | aaaf4fa41617993ec21360df7f66f7c9722046c5d0faaadbacfe78cf7f88b4ca |