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.415.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aaf75bc8d3636ad641be5f8cd5eebeec5de4b313b98e483f4c0bc1ed87f8ce9a |
|
MD5 | dca050a0a2ecdd34c0dbd284980ddf09 |
|
BLAKE2b-256 | 88b513dafcabe2eb4d6604f4f5131b27980d2306ce8760d15c2e2f04a3ae2f3b |
Close
Hashes for pepperize.cdk_security_group-0.0.415-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a38c56c30e1eb220d6cc0affae786af11f23cf2fc0f54b37551c93f1243694f0 |
|
MD5 | e55881b79fe23897bbecda79cca389ad |
|
BLAKE2b-256 | dd5cc88d4ad751dafccc7c1da1b81d64b6ed8ac000b9902e24f5ada91dacbb13 |