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.287.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cacb83585d31bc6c31c103ab067c1123a18fc1d7e5e9e3a53ed7592c076fe2e |
|
MD5 | 70979306d1d2b3f27963447ad37fe1c3 |
|
BLAKE2b-256 | 1a218904127a840d0fbc44400dae4971edb94687514e2ddf19e824f00fc45d35 |
Close
Hashes for pepperize.cdk_security_group-0.0.287-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2beba06511f1fbb88988a18d205510fc52a6bc7d40eb4228e5cf8232524760fc |
|
MD5 | ed7d0b537708d7f4a1b11e3ec3f9a178 |
|
BLAKE2b-256 | f52bafb4506d8e86cca35f0308874ccba8869152d73022dc7ce265e2117db91c |