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.344.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4979f353b68ab234015137f6cd6d708e911a06c98b292589808c87f0270a3ee |
|
MD5 | 47133439dd312ae38b1e2edd89884e95 |
|
BLAKE2b-256 | 8b9296b70ed149184775b4b5250fd5768a0f537abecd7a15d6bc11a04969edbb |
Close
Hashes for pepperize.cdk_security_group-0.0.344-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee18b3912fa9e728a615c2a6fe1dff413817697ed7b910908a5ee89506796885 |
|
MD5 | 554312f01947f730edc4a9e3c2a39079 |
|
BLAKE2b-256 | 7df95d25bedd4ba6c0e8a70f32b809848f39bac571173437b1464d483a4d424a |