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.234.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2031bfd8b935f46de3358739c4f8c427a9f4733a60feedd82c18d79f39f88c55 |
|
MD5 | b5c0eeabe739aaaef0091ad6dd7e4636 |
|
BLAKE2b-256 | 8c866c12570526e0118d2f3f880ec975b6266006c2f02890c007dbe9319abbc7 |
Close
Hashes for pepperize.cdk_security_group-0.0.234-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32d493c60fcbf1b8651fed1216ed69c99cdbf9cb5403472f96ab0dc9cb53dacf |
|
MD5 | 71a3cd738b75f32a549fe8036a683e32 |
|
BLAKE2b-256 | a879b6654979cb441c7fdbba9cc64e151a6cfa1a793349b0b883aac518a7ab0c |