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.473.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5ae817bce3f5cac835a6a0a38cbe318f1a10f405646319420441e4146ab2398 |
|
MD5 | 4a65bb683ac0fd2019ba4fcfdf997cc7 |
|
BLAKE2b-256 | 52a8a77e6a72189a1995b21093af66b4f154d4890584d260f9936644a5dde9b2 |
Close
Hashes for pepperize.cdk_security_group-0.0.473-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e17ca21c5dbcd5be7ed3d8953189cbb0b9b6a1f836724be27b34841e8d4280e6 |
|
MD5 | fe37d71179dfe9e457a369c6eb8b0a25 |
|
BLAKE2b-256 | 466c5e1ec9839d3ee5681dda328aea7075b4981a46fcd15df9248f10aecc07e2 |