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.151.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f4d28972c879c7673c8a37faedab8b24bf7bda4ead17736e06980272a7a52bf |
|
MD5 | 3f4ed1a812419b9385f5debdbc193c30 |
|
BLAKE2b-256 | 11667fe302e1603a85c429d1c308372a1b4bbe2ca5cdfcec107dd2d911b133b9 |
Close
Hashes for pepperize.cdk_security_group-0.0.151-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9d24a3e5b4f6d952996e53cebac2ff18d4d20bf5fc28a91672d030f0c052120 |
|
MD5 | f9f8f4142b26ee73de7abf6b47786daa |
|
BLAKE2b-256 | 5b6fd7a98a4a139f81c4922a7a9b5c546dfe220aedc817cb99750a74beaa5c63 |