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.132.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47df0e591d08b357c24342c248e2ff6cf840702466856e8439d1542bee96e6b1 |
|
MD5 | 26b135beff84b184b9bd7497c0175756 |
|
BLAKE2b-256 | 5c60763031be0b0c86d375c58379009a51e14ede567407a4ef4f83200e8f87c9 |
Close
Hashes for pepperize.cdk_security_group-0.0.132-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edea85d24559befdd4bc58230fcccf6d9ea3e1c6b29b50abdb8a15bcae473959 |
|
MD5 | 891e46f3e6ffaa011ea149cd470dc018 |
|
BLAKE2b-256 | 2a89be93841d2e294758ccd730ad00d37812d752fc91835b6ec8c82a58235001 |