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.135.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 329494cd2346efff6744a22618d8f25d60e3c8290ec826351938a74ad3a58371 |
|
MD5 | 05ba1efafe511e71471403784d3122a3 |
|
BLAKE2b-256 | 17ef7295ff43d6f7003fd44025332035f18f7d62b7ae4878fb115a83a37cb5d8 |
Close
Hashes for pepperize.cdk_security_group-0.0.135-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 561744e1097e13034df9ae69f3f555cb46a72249775a9fc70f80ff780581598c |
|
MD5 | 55b99168724e108bd95143e181716c57 |
|
BLAKE2b-256 | 3de34e8117a9ffc303a140bf395ceec9cd44ce1f4141a8baa1e6e0dc0ef4eb8e |