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.244.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef670372574a7d5e919f02d88a234ae851ac8bd73d1db2d3c0f68f5d1c543ba4 |
|
MD5 | 10440114852f5731f302ac80ee02e9fa |
|
BLAKE2b-256 | 9233dd0571559732c4c991485131732ec9c5d96fa7b4ca95789b794c48be8040 |
Close
Hashes for pepperize.cdk_security_group-0.0.244-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad63305bb2095b32291efe7a115c1b71b50a8bca620a91717ce394e10396f79f |
|
MD5 | c3bec67ec6721d7f743cc564a6f0e78e |
|
BLAKE2b-256 | ba0db4e282a3f6f3a43d75aca1f7e5a53a63ea4ab120350cdb783a86607aae94 |