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.267.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62433b952130059d73a83753795657b0e91bdab593dac5a0504d335c425c009c |
|
MD5 | 3b1452b11685274e4d232a1f2c8d8ac6 |
|
BLAKE2b-256 | 49eb64d621077bba9ca54dbad3f095945c8c0c9fdfed4fed0248cd8d1f38c8c1 |
Close
Hashes for pepperize.cdk_security_group-0.0.267-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 176c79d434e6d4ca6c557992947fc4b8de776f38a1b5be6d29cb9e11b3ef5952 |
|
MD5 | e114368752f26ade283b43e1ecbe0417 |
|
BLAKE2b-256 | faf1fad9378174385d40c6fc1fc313bfa465f7618a972b91d319e8ca90bc6d55 |