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.225.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5582cbf3ce94c422c0452902976cf0703f512297270cc6c7593c94adfd0fe610 |
|
MD5 | 546f83896025b0eb4fd4b914aeeebf87 |
|
BLAKE2b-256 | d703f851038d44af1c5d15e02abc735345a9b60fc6e2c55d7943d82fa81116bb |
Close
Hashes for pepperize.cdk_security_group-0.0.225-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b896874b59309729b3676c3b00d25e629b0c76e16ecb949e7fbf3521b800dc25 |
|
MD5 | 9062e609d428340f153e1aa797edafc1 |
|
BLAKE2b-256 | bff2c992e27df69f82d0ea98976d8180038cfbf620c60f06fb5b8b253c99ea2a |