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.522.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00f4d2264d3a500d77b3264d303ff30e5d7cb433538b6a7bd9d8b67ed78ac1d5 |
|
MD5 | ac70490ea9f7b6b29182e60531ad8c50 |
|
BLAKE2b-256 | f5c3450f7224b58126e0643ee6ccfc75829e7fca60e68c88865916a2c426dbd6 |
Close
Hashes for pepperize.cdk_security_group-0.0.522-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a997d16a725bb4391672864cd1f308eec33efeefd781519a39770b1f37acae0a |
|
MD5 | a09d2d07268d7479c7c5a5deab6e36ab |
|
BLAKE2b-256 | fdc9869200e572ad598832ca99cf9fbcfa8f22d4eb9338b66d277091df2983bd |