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.238.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b86921a7c733fe892220271e9f18d01110ee81d27427f834cdcca81ecf922c36 |
|
MD5 | 77a06dbc83f7c2b2c0faf78eb43210d6 |
|
BLAKE2b-256 | 92ffa5ac4bf9c7f6cd506f9f7a1897b6230734ad5d89abeb96e5f3c8e2e52768 |
Close
Hashes for pepperize.cdk_security_group-0.0.238-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f8fb62d7413a70547e23f8e5d7bc67e5e403d9f792abaedf7b5897e5f9a35ef |
|
MD5 | 3d176a381868978ca377b913703fd245 |
|
BLAKE2b-256 | d963ed33aca692ecb1d3d919a28cf9a376c5a831dddd89c84498f11bd389b249 |