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.445.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 830c443b1911219f7e477e1809d780efb031381bb7f4d27bdc019095bbb4930b |
|
MD5 | d2e6ec470910873f417797d1059ec258 |
|
BLAKE2b-256 | b8e372f89d9a1f5cf57b8f7dcbcac3980891e3e99ba2436d30b7faca84d2eb1f |
Close
Hashes for pepperize.cdk_security_group-0.0.445-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63416485b321f7c0e5d7aead6fd1171b38744688bc7f477d63375a4083bb509a |
|
MD5 | 0103dbc7f0d7af6c989a7de8c1c299fe |
|
BLAKE2b-256 | 7a85b028bf67951f11224cc4da2b43ebfcb30861f40b8c71e6d1e94c2cadefdd |