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.540.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6cf04a4a3bcf6b2518449163dc332b52c738631004e662438f561c01e6b7d4a |
|
MD5 | 1c29947bd1fa7af46e848fdb4917694c |
|
BLAKE2b-256 | 8b2089db0a3a5dc9ffb395945f9632fb17f2ff3f00740c57d69809717695c349 |
Close
Hashes for pepperize.cdk_security_group-0.0.540-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9fe0a580c1c3edb0c4723bec34eb222689cc9a665e53872781c0489e8f56ef1 |
|
MD5 | aaa8a164611047806abf35e6e4048137 |
|
BLAKE2b-256 | 121dd2b262339fa8cd21c55f4f323a45e8fe9bfe0b658c5f7530447e13e9c1d9 |