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.407.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc5ab651f3fe9e56d48b4d7e55a89e0fe0dc5a4c8f038aca0bd7e03ebd7816cb |
|
MD5 | 9ab99b112d4924cdf75b77e5090f348f |
|
BLAKE2b-256 | 4c356a288c92ee001ec7959385e41ea5beb3539b57a7aa0bfe753aa77be4f2f9 |
Close
Hashes for pepperize.cdk_security_group-0.0.407-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0ec4e8e8f6738db91c4bfa869a62ab038802f33c460c9bd280d421812442cd |
|
MD5 | 1639b6097ef253986085c0ebe318619e |
|
BLAKE2b-256 | e5491c72f7b106b9d1b84f3831c0872a0d76dc81ae0d41b96f640c0f5bc6cdf9 |