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.219.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74726582630e04e8e3f2a79dd269a59a2c904857ec45390d0b6344e81f09a9be |
|
MD5 | c5841d12d906a98d15bf72d74843d242 |
|
BLAKE2b-256 | db636ca3088096043e474f5dd59f8031791de1d0f19571c096efa9d5f52445a5 |
Close
Hashes for pepperize.cdk_security_group-0.0.219-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9496af43a9314cd043f4314bebfc04e13a7d3f90e938df04ff6a002339736f8f |
|
MD5 | b0863e635f44c3b577ab53af14755e49 |
|
BLAKE2b-256 | 180d0888c0bf136227a5c7b2eaece0c13c12e225cdd2f47ad42a123f73525ea2 |