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.388.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18c59180a134a6caf03764bba82a30342c48edbacf6a87bd9b27e0c13a1cd87c |
|
MD5 | 034840ba0c375ce887631cce6fb993d9 |
|
BLAKE2b-256 | af03cd8fba2e49ac7e824c658b6b024922338e147a759d45c61d46ea99363033 |
Close
Hashes for pepperize.cdk_security_group-0.0.388-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e5e728ae77c9c50ac134acd759ba9b2fdf03e323c29883a654e5a87ad2e060a |
|
MD5 | 125837d215e2991d355bedd656bd6a3e |
|
BLAKE2b-256 | d2802a92f4036dd81da21fba384d7b6f0e3b76629a795f5e258f0f273e9e7768 |