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.476.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d81ff7569e2d4b4908fd713cbae8f471f5e3eb766a6f5697bf7df4673c3cdbf |
|
MD5 | eadf8161b1b80bd8a3cf618f59a27ec7 |
|
BLAKE2b-256 | e154729b90bbce1ea441d6367443835e432b3837f96de37a682f378183299b5f |
Close
Hashes for pepperize.cdk_security_group-0.0.476-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52a829c8d03ac9be14eba3aa1f956ee38057875b3810a4e48449eccbdb01835a |
|
MD5 | ba209f1f1b73ed12843370cff2fb3b46 |
|
BLAKE2b-256 | e73074939df924144bf8601ad6d6d6a4e9804d7f05e3cc7e2a5360b9def93c8f |