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.145.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1be0f1f35c4fa47998e48bb2b1d3ec0c84ffad12656839467b7f630fd75dd38 |
|
MD5 | bcf7eaa51ca74f30b8d7f3d3125ccc42 |
|
BLAKE2b-256 | b7724e8f556048e815140195016ef495e0618aba8f0e740ed568c606f89677e0 |
Close
Hashes for pepperize.cdk_security_group-0.0.145-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fac1d55b8752510529c4f522043d820945a62d0cdf9233e5e934b67f441ad77 |
|
MD5 | 3445321cab5591cb0e4d69e3da9c917b |
|
BLAKE2b-256 | 1a71675a7febd683c142310a51cc4d018980399adfe0e865008b81a98a378341 |