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.159.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab4a4359e5b3db50173a1a68a004fae4dbe91acc286277b0469b5544a54c201 |
|
MD5 | 619d18b924ce2bf15274cce8799ccb56 |
|
BLAKE2b-256 | 2b55386c653e5518b31daf614bee1ac5bce92e8380b54962ae12b06be3bb46fa |
Close
Hashes for pepperize.cdk_security_group-0.0.159-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50626a2d275c079b159afb419ca27304c3dea6eff8376815f4bdc7f221729705 |
|
MD5 | 7f0a903b112f9fa37d29c7b31a17af63 |
|
BLAKE2b-256 | ab60a493d2ae5c30cc0b46dd20b21925a967809793ae85439ac40fb8a78e268d |