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.264.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 242be694a0fc62c65347a6ccfde1e3b9d28921e9645c4c624022cbf9bc4ec56b |
|
MD5 | 97bb38ee45a6de50c0ae1d984ad5e99b |
|
BLAKE2b-256 | 3b7a5e5f8d5fad154a69185be842a1b579084a7f9c083cb7bd236acc3c16eced |
Close
Hashes for pepperize.cdk_security_group-0.0.264-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f52e24fb0f33e5ca8bfb8f55ce048d7c4a427327eafaeff0185811062b01a773 |
|
MD5 | 4b2e645ef8ba981252c195d1091e5344 |
|
BLAKE2b-256 | 6ef8a94207b04f3b9c47dff762f3fb1afa66fe4e6218329cbadc290ffdbbfd72 |