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.280.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89fa07aa0dd5f8c0e195b6d1563c4b6fb3d3ec7ec3987014b75d41f98d9b916f |
|
MD5 | 2b371cc637b0741d87d52870dd0814b2 |
|
BLAKE2b-256 | 0dabb0a44d4d757a1354ed628363bdcdabb8701264b8481906870dcc87463dc1 |
Close
Hashes for pepperize.cdk_security_group-0.0.280-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98bf0e51966c18ba90c0442cdb2054645eeb6a4ff31adfdc16e9d5a0b9517d74 |
|
MD5 | 6913d3034169d085c201620e8ff7cf44 |
|
BLAKE2b-256 | 6625921e309aef135c83d48c0b8eaadbd5f9ab7f15f59c96ae899a6bbdae4a26 |