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.472.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2576332cc711385267979fe0365fcfd28f8da23d1f98dd8579308e0a6d39b581 |
|
MD5 | 2305d1d9eb5c4dfdc096e303c7eebedd |
|
BLAKE2b-256 | 486d33fc6d410c2af7191c7cc9a0d77fd96100b7c6a81c7d6fd69dd05466f391 |
Close
Hashes for pepperize.cdk_security_group-0.0.472-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc4d699ad77732e4c89474a4e4b43775405fdf4234c9e413f502554761fcfdc5 |
|
MD5 | e354d73c99c10e17ca035a09b463956e |
|
BLAKE2b-256 | b13410736e59a1713186480ec5547b2aeece644533d0810c33a5846f9875b44d |