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.497.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ddb3e9a41bba6179d93becfd4d2819d5e4c07c3ebbc9b1b43c577c74bfa0901 |
|
MD5 | 7f111b21811592711ef041af6698e731 |
|
BLAKE2b-256 | 1e30ed52a3dc76b66bdc809548d9b5a84497f8147ea2aaf55a2f3879d1c714fa |
Close
Hashes for pepperize.cdk_security_group-0.0.497-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af44db83dafdf981e284b6c2d14adf8c232920c3aad1557e8333193a073e8fee |
|
MD5 | 80c8401a817d9982c921bdcac802360c |
|
BLAKE2b-256 | d146ff0075120d5b7c916cfb63e6f3aecbac79c3cef52c9a516b7e3ad7d17299 |