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.217.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20688a60f22e354a18e00cdffdbe544f46062e5aa4f19237dc8956c60a3866a5 |
|
MD5 | 92b5ae546c2d22356373733a395760a5 |
|
BLAKE2b-256 | ab47322fdfd9d09861d542f15a431e5c2a6c3652a532c22b64d836f0218e222f |
Close
Hashes for pepperize.cdk_security_group-0.0.217-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 307708d1fc305e1da2ee762966ae84460abfcf1520a3546af93ac37e498047de |
|
MD5 | 3bb74f1efbfd963381b7bb4fb6dc3c7f |
|
BLAKE2b-256 | 096697bb6f8ff5ca8df2636d02a99c640adbe2fc11ac029933830c665b03bfee |