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.331.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 822538c3fad0b21b724ea79ded361e8d3ce69441dd54d9b1d83fdb2466ea291a |
|
MD5 | e7021d36a4d0836105b230ea76be2a3f |
|
BLAKE2b-256 | dc4d05383b04f49d94faf6ff9ea276f688fb28ffd0b07db46a3ffbb8f21cab0c |
Close
Hashes for pepperize.cdk_security_group-0.0.331-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e271dea91597dea38c721d40bde6ac8f96110a830180dd09f6f6d19d88b5a57a |
|
MD5 | 4499956a57596cf8b7e21b20fb6905c4 |
|
BLAKE2b-256 | 3eb0f227c0407fb65434626c3aa260783f0f5db4ccb3de662272804d9a9851a4 |