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.202.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7cb4f9ecb5d81e75d45f85e08c94ea03bd4c1b7f489247dda061b84c4b2ebe1 |
|
MD5 | 49bb9895d0860707175796e19ba355f5 |
|
BLAKE2b-256 | f684b40fd9d53a951c35de3355f992ed406f1b95d349861db40c45a9febd3b26 |
Close
Hashes for pepperize.cdk_security_group-0.0.202-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7973066627e788a52197d1ea0fd743fba9b80df4ef05d18fa6c063c4a96c3e1 |
|
MD5 | 6ed46853da278d48c0d5da9d3edc0e18 |
|
BLAKE2b-256 | 27c1e07a9953f89ed157005654384713fe59966d348babe6d756a9ca92800b5b |