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.142.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2226f11ed8a14dd9cda7cc9ee08fe2bc120a2eafc9485f4ea8ca122308fc5d92 |
|
MD5 | 46ae6ad73a5ecfe9b89601ce9d342d90 |
|
BLAKE2b-256 | 356fa3c371ca1f9cff09b33ee3cd8a209fdc06b36d1af7e0735154452c705147 |
Close
Hashes for pepperize.cdk_security_group-0.0.142-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 308549d8e7db6ae73f2abba2968fcf6d971658e65d5dba67bc4052d98cda67b3 |
|
MD5 | 375d2dcd3230312f489c21289631ebb9 |
|
BLAKE2b-256 | 766ed9095cc8b19f7b184d0bad32796f65759b4f5fdd594126f2d34fd66d5435 |