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.305.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c6cb292df6c451572e2ca386029e11980f5545dda3e05e625ffece79362fd0d |
|
MD5 | 7d0a1a7d27e18d21d1c09e9c31d854fa |
|
BLAKE2b-256 | e8214928744e2c1ed9a5676990e2519b83e190accb36254a0b90f1e37c99d9f6 |
Close
Hashes for pepperize.cdk_security_group-0.0.305-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b276bca75130affdab304dea34916cb0c91585357518f468cda031a54cf760e |
|
MD5 | 4aa206ebf90f97b827ef7ca15597f3d8 |
|
BLAKE2b-256 | ebd2896b8c1735a306fb7030b6cae62143bcec0e8b42351eb52c764646b8148b |