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.376.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb52437ceaa2f062ad46a188bd0682c2d9f0f22ea3a30a65d37f2c98f112b849 |
|
MD5 | 4f88bf7c62cdbac58903aaa6625549b2 |
|
BLAKE2b-256 | c120de569ebd9e12ae203979ac84533d519cbaf3c653349574465fca66454955 |
Close
Hashes for pepperize.cdk_security_group-0.0.376-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db364c1e939fc908397f66dfcf850bcda2073af3679cf8b8e9b5f50a062910c4 |
|
MD5 | 13342e7294b1f332cb715ce499401756 |
|
BLAKE2b-256 | dc94bd83fde82e18e9d44545da02935ccc873f70f31c8d9e45174ba5021b09ae |