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.389.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31a2b5b83dcfac2c386d0e4301518397bf5845a9e88a946d1e59c1a1d7710073 |
|
MD5 | 0db3a4dbe7ad5bf4db752e6e50438b72 |
|
BLAKE2b-256 | ccf7a4a4fcdb848169f812cf778ea829a7c6635e24299a9ec9c340c4ea320c5c |
Close
Hashes for pepperize.cdk_security_group-0.0.389-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf36e5f02098502990a003dea30a4ba2b4b92904a8d1af82d8bf36fd4f95d47 |
|
MD5 | 247b26296b667ccdfdfa8753eea158ab |
|
BLAKE2b-256 | a0fa7c117c7e531e2653f81ef61a40f8d78c858dbd976d920c0bc36081f984e9 |