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.325.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7ca9bdaad6262a351b8bf1e5ded71696e73ce89e37de05901400790ccc5b36 |
|
MD5 | 77a09edd5084e51806a602c7276d5016 |
|
BLAKE2b-256 | 9ead0f856ea0e9cd8f9074cd930e4b8983fb3d27db047ab1e7292cb4c59db207 |
Close
Hashes for pepperize.cdk_security_group-0.0.325-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63b3bc316b5f52ddcd9868aa2f3b58c0c1529f0106ba77a1e996150a5dadc323 |
|
MD5 | 74ba9c501705a185f4aea6f57eb0068e |
|
BLAKE2b-256 | 2fc0e2aab454359d85dd9f67d1b8d2287a576e3902ec5200bd1e9f497770476d |