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.130.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c1a4239485dcd36e1d004c56d1b9b1ec3fc64b045b833e9a7989bdae2f8c2a8 |
|
MD5 | 98b8464c6b76f22faa6fb1f937cbf7b1 |
|
BLAKE2b-256 | 6a77b5106676d7415ccc589f6af40c1190e7ad92c445ba57342e5e3313b3b99f |
Close
Hashes for pepperize.cdk_security_group-0.0.130-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ff186826ac2ee26fe92975a88ad213ebade49b78f38e7de403cf4d3a2b533cb |
|
MD5 | 49faee1788faae5cbafe9e351d365821 |
|
BLAKE2b-256 | bd898391b2a2b0670c192c257e485df390c6f29a63f20ad0c19580d8dab6305f |