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.285.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8f7a304e0a32323d6337000eac2d87024183fbc02cdc54b5393c0d511ebb59a |
|
MD5 | 8bd9b8cb1cc5b64ec7720a73cefc86f1 |
|
BLAKE2b-256 | 34092994309991190542f9c6d89af19dff4bab9712eb3e12c1b3e0c2d5098906 |
Close
Hashes for pepperize.cdk_security_group-0.0.285-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed10a48261ac57df0a8b99faab5669bd9f16b8e2f5153ad79eccdcd82eb7ef62 |
|
MD5 | 7ad1db2b115381083cb966da2c90da37 |
|
BLAKE2b-256 | 297e8bec67e6bd3dd90e6e896f5c4cbe3af96c345bfc81be6f8f16e5a8396095 |