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.347.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | be150176a89caa6692f2bbdf413707264fe1225dc9872a9ade4c50fdd4396a0c |
|
MD5 | 323bcc5c046733d1fcccc33469c159a5 |
|
BLAKE2b-256 | 171226f418dc2e8c3578890e85444f7c220a3e89466890f3955c564dd84ad887 |
Close
Hashes for pepperize.cdk_security_group-0.0.347-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49adbef3ec93e7fbd2a256cfc10bf258cfc3f4de6087f1e9c65151752b1ae3ec |
|
MD5 | 69eba60a8912fcd9cd9aad7357c7f4bb |
|
BLAKE2b-256 | 44b631c138a18bbcd43e111155b9b4a4908071882f359ded3c937d23816ed4ee |