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.195.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 389dc19ecfba39e9d23f97a482f30e1bceaf1b6b526a6bebbb1a16a147c19518 |
|
MD5 | 180d8060b6e10c60ef2b7c96cb9e30e0 |
|
BLAKE2b-256 | 5cf1ad161a4d9cb976b14d03ffb3aa0490a0b1b8df291077185ac3b94046cffa |
Close
Hashes for pepperize.cdk_security_group-0.0.195-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45b7001c6b89ca654cad041c27831aa26c9d56466a691fb9b86281459abd406d |
|
MD5 | eb103c6c451fd3ce61b5344cd71e85cc |
|
BLAKE2b-256 | 11c7a4827c02003cbcd655a620f8b35f41b22b311d5a3ee33d57f6a3b1bf5e38 |