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.197.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e9e2d8c1f2e251d51962e330cd27be5fe5164bf5e68de5bd0f6a8dee071893a |
|
MD5 | 437aeea0bd5bc6ebaa133b5e52957ff8 |
|
BLAKE2b-256 | fdf6be6e8a98105bb35101d836803a6883a1fab6958a705bef80ab8340d33c59 |
Close
Hashes for pepperize.cdk_security_group-0.0.197-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bc722f7900e5134836c04ec396346281d81f8378bf7c8fb36358b1f1e105865 |
|
MD5 | 32cd8b5ad332e77702ced973432e14ae |
|
BLAKE2b-256 | 5b020701f87773e36b014555805ae9dced13a4c7bc2237c8e62a6f41574d6091 |