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.286.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93f72e44678a1ad094b1ce8740f83c4103b045da572b632ebe500eeea98fdef8 |
|
MD5 | 90649fc2506010bd9b5270bbadd4bfa9 |
|
BLAKE2b-256 | abf62dda046e5c01bd3494c1d021256b043bac601c81a5b12d59395e7adf5c87 |
Close
Hashes for pepperize.cdk_security_group-0.0.286-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73993b293e840916656e3bb2f97bd5f9fa86ef094cc9515d3c502be3c3e8ca24 |
|
MD5 | 952ad4e4aad67a89345624161596c571 |
|
BLAKE2b-256 | b91256469db68e3b9c7c03dad879aa5bafc313de04b5f30536f4e22412d216c4 |