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.256.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c303a3cfedc42ca22ad41e1fc18301890e503a9237400cf3c60ae43f27a8e8e6 |
|
MD5 | f059e1dbd1b96ce48bf2df6bcc66f6fe |
|
BLAKE2b-256 | e97434c11a965db2955ccb5a068f505354e92470deb756473bb7a9db72f349f8 |
Close
Hashes for pepperize.cdk_security_group-0.0.256-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 217ac44f12f8a010622082e8222efdeeec354fc34cf52839f0c69100b4232477 |
|
MD5 | e8b52eae818f3d269374b03d0f6d3245 |
|
BLAKE2b-256 | d1cdeba831e34e0fedd9635c119e36567918a4af24fbf40e3a590ff9838688f5 |