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.318.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85440a4372969baf77c8986895a8421e64d0a610de531ed1905f10a5b3abb345 |
|
MD5 | 8d4577f4aa1842ddf70d8ce58b70ea28 |
|
BLAKE2b-256 | 8674680dbfe4284676080c091cae6fcb1de844512dadc103442b465b954ea14c |
Close
Hashes for pepperize.cdk_security_group-0.0.318-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f61113a27559b7015f3595ae0d6546dac2aee64faf6cddac22bd8724395815d1 |
|
MD5 | f8a063de28f68e7c38bf0626b9007c62 |
|
BLAKE2b-256 | cbd2c38cb812ea5b759c10fd85fa08352d5b7b353643070352b4c66bf86175d7 |