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.278.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 621d767c389066052190d756fc48df0fdc05519ea07cc5cec67e8eae852909c2 |
|
MD5 | b49b349fcf98c5dd095acd7a51271384 |
|
BLAKE2b-256 | 92e489781c738a402e62cd0d061db049feed3f7da049a3aa4e52764171ed2722 |
Close
Hashes for pepperize.cdk_security_group-0.0.278-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81c919c105327874d15f058d242982266b616873dd235b0c19a17f81d50d72a7 |
|
MD5 | 637f6ac6d12570cecd2b1331c88fd15a |
|
BLAKE2b-256 | 63100a9030449dc827889cc52f76660f4579698cd052eaec8c729322f44a8b85 |