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.192.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21b429105b335fa3a2b37e573cf34da8dcaac68c5951f2b45de24c7c48e71a67 |
|
MD5 | 5a3b505f1ff3e4dfb6630fee70786120 |
|
BLAKE2b-256 | 3f5793efa496ae75099b89499cb242ed0f8e4c44d56bf140def4c68e7ab649fc |
Close
Hashes for pepperize.cdk_security_group-0.0.192-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f77823c26f24739712b26fc6ee95fe2e3b7280b4c85556830432dedf5b9c15ec |
|
MD5 | 827c777af877ef0e6b1a5ca1b01f61d3 |
|
BLAKE2b-256 | 92ff468592ad91bb8157e5a36cebb22e4756e966c909e4c3a683ea5d2b03a423 |