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.514.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47c08a7f1a61c0698d568b604df8f3d279ffe0855f99d2f545e9e0b9d958b76d |
|
MD5 | 2a5301d768b253a25f21498392e26848 |
|
BLAKE2b-256 | 6a321c19f2f5495d306f437677d78aa8dd92be4f2e786cc5491246c66b391ed3 |
Close
Hashes for pepperize.cdk_security_group-0.0.514-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb2ea6f13eba67e6f4486aa263b679aed918725ee9084c95218bee65f9fb8d19 |
|
MD5 | b21f5ba6ff9f21b82e81f6cdd6ffbb10 |
|
BLAKE2b-256 | 994ac52ab84c9006e08a34490f63d609c04e8845abb00cc33986a80c408cf688 |