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.237.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c15b0f719421ab37d7799b9f4454a1ef0282aaba1f956d9d2f52b15bd882eef5 |
|
MD5 | d052ed3fd2930d8de98ec0f9a9c7d909 |
|
BLAKE2b-256 | b8e8f3c9833df33d6bb4bd6d0fa6261ff78879f4918f62c93b847c8f9cd3550d |
Close
Hashes for pepperize.cdk_security_group-0.0.237-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c8a81195947519166f05ed577f2155140f013e0f6d89a12f32306ab2e88d03 |
|
MD5 | eb9d309883793123f2e67e9a8885721e |
|
BLAKE2b-256 | 1ae0fa0915adb5532c732ebb3aed3f57086d5fddfa9a1a46c8f4c70b3f4c35c8 |