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.243.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3076a56e155670fce51c3f52f7eed4441ced085d50e267c1b24a5551cc045581 |
|
MD5 | b194a9bbb6ad359503cce51a206095e5 |
|
BLAKE2b-256 | 2c1f1ccea86570766d0c6c55f99d85e2ba88814dedf12aad64fdb81735914d45 |
Close
Hashes for pepperize.cdk_security_group-0.0.243-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5977c962aed3f050014e368aa3b4532d0fbea51d3c50b49db0102acb2240ed4 |
|
MD5 | 4e5b81c836b15230239c3dcaf33670e1 |
|
BLAKE2b-256 | e7e255aa49dccf81e28c2ddf6abca4c25d9b517989bd4173139a003b9988c92c |