UNPKG

601 BTypeScriptView Raw
1import * as cdk from '@aws-cdk/core';
2/**
3 * A Token object that will drop the last element of an array if it is an empty object
4 *
5 * Necessary to prevent options objects that only contain "region" and "account" keys
6 * that evaluate to "undefined" from showing up in the rendered JSON.
7 */
8export declare class DropEmptyObjectAtTheEndOfAnArray implements cdk.IResolvable, cdk.IPostProcessor {
9 private readonly value;
10 readonly creationStack: string[];
11 constructor(value: any);
12 resolve(context: cdk.IResolveContext): any;
13 postProcess(o: any, _context: cdk.IResolveContext): any;
14}