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.274.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a916d9db329d8f73de49b6f2d342b4ec2ba1644f36b0bd0ab88c7485b7e1abc |
|
MD5 | 6ba67a380f9f7a473e136e5a158e617a |
|
BLAKE2b-256 | b49b51fe34a8f0fa70ac41abe0c65924445327ac6185a4392485bc487f7c7bb4 |
Close
Hashes for pepperize.cdk_security_group-0.0.274-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacc971d74f6351d4d951e95ddccf9d0dc5f6073223ed90279ecf780bb8f5c00 |
|
MD5 | 3541879a796540bb1147669c6d65edde |
|
BLAKE2b-256 | f1ae86baa05b270c9565043ec6e1293dfe1ac208656e297120885cc10581ce6b |