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.242.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 442be450f07b2326476d63f9b643603ed11e5a059108840c1db8fe21ac4d5ab4 |
|
MD5 | 148aeeaec1a39a80c6b7458f92c8477c |
|
BLAKE2b-256 | daaaa13d977bd60683747b62eedd3af6f20a21f5132661415845421cc44a1a55 |
Close
Hashes for pepperize.cdk_security_group-0.0.242-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9cdb1dc3365ddd7e20f03a04d661e5bc65b8cd822428e0a80cc6fccae31b0ae |
|
MD5 | 1d0a8e5b72481847941cb74e563d2798 |
|
BLAKE2b-256 | 0bd48498f7df415da2daaf34a6bb78212133087c2671e11fded33d55e28f66e1 |