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.423.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8625ca0b1aab7733a23e2d74beaad1c3d1a82354a74e6e32a80d770e46b1003d |
|
MD5 | 38de0f4cd89bb4ac2f5d0ed076f0d0d1 |
|
BLAKE2b-256 | 86b8607b8aa976df231d592c514fe48fc10f56280b9e5c30e93cad30443c5f03 |
Close
Hashes for pepperize.cdk_security_group-0.0.423-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 293ceb522cd1c699232cc2f1b669ad9beeccbd67d9e9e4b93048d88d66daaa7b |
|
MD5 | 44a34ad29d4aa7f7427c4faec7fc2fb6 |
|
BLAKE2b-256 | 34c1c74dc6e1b9f842b914cda95e359cf4a2de0e770a3e6809a4e12951be35a8 |