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.333.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1654f6199d88ba9dd3208711bb021af0be9c1eb48a0f3cfa9dbbc1088608685 |
|
MD5 | 0ed518f2faa1cb57eb9b6a41a8679ec1 |
|
BLAKE2b-256 | 8cbd8002667e7110b25b68b50509a165433cec285b8dfa869e739ff30a4c4f0a |
Close
Hashes for pepperize.cdk_security_group-0.0.333-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ed65f6e3bf5ade13df7fe11bf184d2147e590964df76bc691840f4b6d4240b |
|
MD5 | ab7194c5f50f8a5912e06219bd4b1ead |
|
BLAKE2b-256 | 6c9d85a3667eacef7056ca54493609936197251dd2f7f43a32adc6f2c793b139 |