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.131.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 200c303f9c9dc228f9250ec44fec9f4ee073542f65dcd0925ede0f468a6f6a7b |
|
MD5 | ce6e479a0403a7c5a6550315696b2cdb |
|
BLAKE2b-256 | 3f9f6aa145ff4ab4c91222a9d00e645115b26e01b36bf2d05432b68448eec379 |
Close
Hashes for pepperize.cdk_security_group-0.0.131-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 656a17e5d90c2a496485d289e480a0fc124f71ae481efb54ffb983a34087b221 |
|
MD5 | 2b3edeb2132c588027d35723455f250a |
|
BLAKE2b-256 | 0003e62cb24d9e169113d0e4689311c6c077e2a7c9443fb6c6e1075c6d804fca |