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.414.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 59cfa4a7048373d9a9d58a0ad6d2eace316dff0f6fc0b16502b48228a3cd9997 |
|
MD5 | 2bf2de2cc6b2842248afaa993e358e9c |
|
BLAKE2b-256 | 143c2bf066b6299f538619b63aa43b85b18a04e4924eb63ab0ecb32f2681d132 |
Close
Hashes for pepperize.cdk_security_group-0.0.414-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5e834a7259ec176f9db9b119e3f4452c727aff8572b14b3f954bde5f7c680203 |
|
MD5 | 9594aa411662217445f7b85b022d0776 |
|
BLAKE2b-256 | 0af75e09514fb67a429238d8b3dc884d8a4fcd3465c905bfe3907c71a5848f29 |