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.400.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed4d0a35f734c114d18b895b879422d0fbd2f94b9a792f2d6f8486c357490f4b |
|
MD5 | 9d8029a618580001be5a7ce70a65c86c |
|
BLAKE2b-256 | 847d08f8158d952f23a9e0c1236174adeefb4634970faafc1e499e38c765b7c1 |
Close
Hashes for pepperize.cdk_security_group-0.0.400-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae8ffb8d5948df9009b2b3d33bb75264975bff4769fecaba35aa7dbfe13fa8ea |
|
MD5 | 5d7b5f22aaa47d4a050c33b3339dca70 |
|
BLAKE2b-256 | 3e0e8a55036696248de6710651de107c57c238343a4dd7362b1484640a537b05 |