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.200.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ee7559589103bcbc1116d7c04d58ccee9ae0f33cf4a2369af0149f7b3024e93 |
|
MD5 | dfb8f94f76d65f4a9b09bc208e99bd52 |
|
BLAKE2b-256 | f2e5eb78b7c8ba808121fac6aac96118b8096550810caa5ba5678592f1d2dc6f |
Close
Hashes for pepperize.cdk_security_group-0.0.200-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1f8a57b4053e0b810b4ba1778338c1d9df67e0296f8158e2dfd57158c669fd5 |
|
MD5 | 7e0e839c5d62386915987246d3d25607 |
|
BLAKE2b-256 | 3a3fd13b5b9cf4007dd452342df0fe687074ac9d60ce54e570b59724552d8c26 |