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.546.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bbdd1c28cb7bd7ff2ab66e08cc273a3b00212f1d3067fe55ab2e7200aa5918a |
|
MD5 | 660c5429ef04fc6aa04c92024ff4e39e |
|
BLAKE2b-256 | fa92cf0261b1e97883aaec1d3e7268d97046313f3ec168453a3a9e96d4d31e02 |
Close
Hashes for pepperize.cdk_security_group-0.0.546-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a762c4e2ce88d126c4364c8fea9697ff3573c91079a4642f70bd0a1f089ca4e |
|
MD5 | 898caf41c4166e1728f2f54cce34fb95 |
|
BLAKE2b-256 | 518cfb883d0ae17aa5c0aa9255a36bc5bdc0b59636078986e6ba0b9c5b03a0a1 |