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.271.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | db16c2920cfea08cf45fb02185209363dd59d0aea9e2e602dc8b825c11fa6147 |
|
MD5 | 3330cba720d2d04265afb67e0a9bf657 |
|
BLAKE2b-256 | 2bcd23ad78f4dcd923d06fbcbafff5d228a58ec9153eebb38c77a8dd7ef4f568 |
Close
Hashes for pepperize.cdk_security_group-0.0.271-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1fc6e8f903a1bb8fe62b3d2391eefc4633259cd8d028dcbca525310cddeceda |
|
MD5 | af56dfb0516fd56c130e9d41bb453b64 |
|
BLAKE2b-256 | 046b54b3ed1894294af32f70339a4e1a51d1936446cf29d779e44e7be2d1d3ba |