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.449.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7012587edaaf95fea9049a5482bbb275ecb4910ba1b9c76652ad55f0f61b4883 |
|
MD5 | 06b0bdb77a390c3d24b6cff3444ddd75 |
|
BLAKE2b-256 | 205828d54f311d282a6f2daddd7ac73c49fb0a987adf4c47c0b66e09bec7dbc1 |
Close
Hashes for pepperize.cdk_security_group-0.0.449-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3a0c4d0e505597a0805a256a775b962f6084d851b0103c0e2e890e9066a7b1a |
|
MD5 | 8ba6096de3773a04073ab275879d3f94 |
|
BLAKE2b-256 | 52aa6ff9bde491e4b04de8f0b5d3c0f742f9e758b34f23d41c4d5eb9a59a1ebc |