Comparing version 0.0.6 to 0.0.7-pre.20d2c53ad5a5cd589328c7a4fcc437e543fe4317
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolve = void 0; | ||
const tokens_1 = require("./tokens"); | ||
@@ -13,2 +14,2 @@ const TOKEN_RESOLVER = new tokens_1.DefaultTokenResolver(new tokens_1.StringConcat()); | ||
exports.resolve = resolve; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiX3Rva2Vucy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIl90b2tlbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxxQ0FBNEU7QUFHNUUsTUFBTSxjQUFjLEdBQUcsSUFBSSw2QkFBb0IsQ0FBQyxJQUFJLHFCQUFZLEVBQUUsQ0FBQyxDQUFDO0FBRXBFLFNBQWdCLE9BQU8sQ0FBSSxLQUFnQixFQUFFLEdBQU07SUFDakQsT0FBTyxxQkFBWSxDQUFDLE9BQU8sQ0FBQyxHQUFHLEVBQUU7UUFDL0IsS0FBSztRQUNMLFNBQVMsRUFBRSxLQUFLO1FBQ2hCLFFBQVEsRUFBRSxjQUFjO0tBQ3pCLENBQUMsQ0FBQztBQUNMLENBQUM7QUFORCwwQkFNQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFRva2VuaXphdGlvbiwgRGVmYXVsdFRva2VuUmVzb2x2ZXIsIFN0cmluZ0NvbmNhdCB9IGZyb20gXCIuL3Rva2Vuc1wiO1xuaW1wb3J0IHsgQ29uc3RydWN0IH0gZnJvbSAnY29uc3RydWN0cydcblxuY29uc3QgVE9LRU5fUkVTT0xWRVIgPSBuZXcgRGVmYXVsdFRva2VuUmVzb2x2ZXIobmV3IFN0cmluZ0NvbmNhdCgpKTtcblxuZXhwb3J0IGZ1bmN0aW9uIHJlc29sdmU8VD4oc2NvcGU6IENvbnN0cnVjdCwgb2JqOiBUKTogVC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cHJlcGFyaW5nOiBmYWxzZSxcbiAgICByZXNvbHZlcjogVE9LRU5fUkVTT0xWRVJcbiAgfSk7XG59Il19 |
@@ -9,2 +9,3 @@ import { Construct } from 'constructs'; | ||
readonly outdir?: string; | ||
readonly stackTraces?: boolean; | ||
} | ||
@@ -11,0 +12,0 @@ /** |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.App = void 0; | ||
const constructs_1 = require("constructs"); | ||
const fs = require("fs"); | ||
const package_json_1 = require("../package.json"); | ||
/** | ||
@@ -17,2 +19,7 @@ * Represents a cdktf application. | ||
this.outdir = (_b = (_a = process.env.CDKTF_OUTDIR) !== null && _a !== void 0 ? _a : options.outdir) !== null && _b !== void 0 ? _b : 'cdktf.out'; | ||
const node = constructs_1.Node.of(this); | ||
if (options.stackTraces === false) { | ||
node.setContext(constructs_1.ConstructMetadata.DISABLE_STACK_TRACE_IN_METADATA, true); | ||
} | ||
node.setContext('cdktfVersion', package_json_1.version); | ||
} | ||
@@ -32,2 +39,2 @@ /** | ||
exports.App = App; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXBwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTZDO0FBQzdDLHlCQUEwQjtBQVcxQjs7R0FFRztBQUNILE1BQWEsR0FBSSxTQUFRLHNCQUFTO0lBTTlCOzs7T0FHRztJQUNILFlBQVksVUFBc0IsRUFBRTs7UUFDaEMsS0FBSyxDQUFDLFNBQWdCLEVBQUUsRUFBRSxDQUFDLENBQUM7UUFDNUIsSUFBSSxDQUFDLE1BQU0sZUFBRyxPQUFPLENBQUMsR0FBRyxDQUFDLFlBQVksbUNBQUksT0FBTyxDQUFDLE1BQU0sbUNBQUksV0FBVyxDQUFDO0lBQzVFLENBQUM7SUFFRDs7T0FFRztJQUNJLEtBQUs7U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dCgnY2RrdGZWZXJzaW9uJywgdmVyc2lvbilcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBTeW50aGVzaXplcyBhbGwgcmVzb3VyY2VzIHRvIHRoZSBvdXRwdXQgZGlyZWN0b3J5XG4gICAgICovXG4gICAgcHVibGljIHN5bnRoKCk6IHZvaWQge1xuICAgICAgICBpZiAoIWZzLmV4aXN0c1N5bmModGhpcy5vdXRkaXIpKSB7XG4gICAgICAgICAgICBmcy5ta2RpclN5bmModGhpcy5vdXRkaXIpO1xuICAgICAgICB9XG5cbiAgICAgICAgTm9kZS5vZih0aGlzKS5zeW50aGVzaXplKHtcbiAgICAgICAgICAgIG91dGRpcjogdGhpcy5vdXRkaXJcbiAgICAgICAgfSk7XG4gICAgfVxufSJdfQ== |
@@ -1,36 +0,37 @@ | ||
import { TerraformResource } from "./terraform-resource"; | ||
import { ITerraformResource } from "./terraform-resource"; | ||
declare abstract class ComplexComputedAttribute { | ||
protected terraformResource: TerraformResource; | ||
protected terraformResource: ITerraformResource; | ||
protected terraformAttribute: string; | ||
constructor(terraformResource: TerraformResource, terraformAttribute: string); | ||
constructor(terraformResource: ITerraformResource, terraformAttribute: string); | ||
getStringAttribute(terraformAttribute: string): string; | ||
getNumberAttribute(terraformAttribute: string): number; | ||
getListAttribute(terraformAttribute: string): string[]; | ||
getBooleanAttribute(terraformAttribute: string): boolean; | ||
protected abstract interpolationForAttribute(terraformAttribute: string): string; | ||
} | ||
export declare class StringMap { | ||
protected terraformResource: TerraformResource; | ||
protected terraformResource: ITerraformResource; | ||
protected terraformAttribute: string; | ||
constructor(terraformResource: TerraformResource, terraformAttribute: string); | ||
constructor(terraformResource: ITerraformResource, terraformAttribute: string); | ||
lookup(key: string): string; | ||
} | ||
export declare class NumberMap { | ||
protected terraformResource: TerraformResource; | ||
protected terraformResource: ITerraformResource; | ||
protected terraformAttribute: string; | ||
constructor(terraformResource: TerraformResource, terraformAttribute: string); | ||
constructor(terraformResource: ITerraformResource, terraformAttribute: string); | ||
lookup(key: string): number; | ||
} | ||
export declare class BooleanMap { | ||
protected terraformResource: TerraformResource; | ||
protected terraformResource: ITerraformResource; | ||
protected terraformAttribute: string; | ||
constructor(terraformResource: TerraformResource, terraformAttribute: string); | ||
constructor(terraformResource: ITerraformResource, terraformAttribute: string); | ||
lookup(key: string): boolean; | ||
} | ||
export declare class ComplexComputedList extends ComplexComputedAttribute { | ||
protected terraformResource: TerraformResource; | ||
protected terraformResource: ITerraformResource; | ||
protected terraformAttribute: string; | ||
protected index: string; | ||
constructor(terraformResource: TerraformResource, terraformAttribute: string, index: string); | ||
constructor(terraformResource: ITerraformResource, terraformAttribute: string, index: string); | ||
protected interpolationForAttribute(property: string): string; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constructs_1 = require("constructs"); | ||
exports.ComplexComputedList = exports.BooleanMap = exports.NumberMap = exports.StringMap = void 0; | ||
const tokens_1 = require("./tokens"); | ||
@@ -19,2 +19,5 @@ class ComplexComputedAttribute { | ||
} | ||
getBooleanAttribute(terraformAttribute) { | ||
return tokens_1.Token.asString(this.interpolationForAttribute(terraformAttribute)); | ||
} | ||
} | ||
@@ -27,3 +30,3 @@ class StringMap { | ||
lookup(key) { | ||
return tokens_1.Token.asString(`\${${this.terraformResource.terraformResourceType}.${constructs_1.Node.of(this.terraformResource).uniqueId}.${this.terraformAttribute}["${key}"]}`); | ||
return tokens_1.Token.asString(`\${${this.terraformResource.terraformResourceType}.${this.terraformResource.friendlyUniqueId}.${this.terraformAttribute}["${key}"]}`); | ||
} | ||
@@ -38,3 +41,3 @@ } | ||
lookup(key) { | ||
return tokens_1.Token.asNumber(`\${${this.terraformResource.terraformResourceType}.${constructs_1.Node.of(this.terraformResource).uniqueId}.${this.terraformAttribute}["${key}"]`); | ||
return tokens_1.Token.asNumber(`\${${this.terraformResource.terraformResourceType}.${this.terraformResource.friendlyUniqueId}.${this.terraformAttribute}["${key}"]`); | ||
} | ||
@@ -49,3 +52,3 @@ } | ||
lookup(key) { | ||
return tokens_1.Token.asString(`\${${this.terraformResource.terraformResourceType}.${constructs_1.Node.of(this.terraformResource).uniqueId}.${this.terraformAttribute}["${key}"]`); | ||
return tokens_1.Token.asString(`\${${this.terraformResource.terraformResourceType}.${this.terraformResource.friendlyUniqueId}.${this.terraformAttribute}["${key}"]`); | ||
} | ||
@@ -62,6 +65,6 @@ } | ||
interpolationForAttribute(property) { | ||
return `\${${this.terraformResource.terraformResourceType}.${constructs_1.Node.of(this.terraformResource).uniqueId}.${this.terraformAttribute}.${this.index}.${property}}`; | ||
return `\${${this.terraformResource.terraformResourceType}.${this.terraformResource.friendlyUniqueId}.${this.terraformAttribute}.${this.index}.${property}}`; | ||
} | ||
} | ||
exports.ComplexComputedList = ComplexComputedList; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGxleC1jb21wdXRlZC1saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiY29tcGxleC1jb21wdXRlZC1saXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQWtDO0FBQ2xDLHFDQUFnQztBQUdoQyxNQUFlLHdCQUF3QjtJQUNyQyxZQUFzQixpQkFBb0MsRUFBWSxrQkFBMEI7UUFBMUUsc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFtQjtRQUFZLHVCQUFrQixHQUFsQixrQkFBa0IsQ0FBUTtJQUFHLENBQUM7SUFFN0Ysa0JBQWtCLENBQUMsa0JBQTBCO1FBQ2xELE9BQU8sY0FBSyxDQUFDLFFBQVEsQ0FBQyxJQUFJLENBQUMseUJBQXlCLENBQUMsa0JBQWtCLENBQUMsQ0FBQyxDQUFDO0lBQzVFLENBQUM7SUFFTSxrQkFBa0IsQ0FBQyxrQkFBMEI7UUFDbEQsT0FBTyxjQUFLLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyx5QkFBeUIsQ0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vdXJjZS50ZXJyYWZvcm1SZXNvdXJjZVR5cGV9LiR7dGhpcy50ZXJyYWZvcm1SZXNvdXJjZS5mcmllbmRseVVuaXF1ZUlkfS4ke3RoaXMudGVycmFmb3JtQXR0cmlidXRlfVtcIiR7a2V5fVwiXWApIGFzIGFueSBhcyBib29sZWFuXG4gIH1cbn1cblxuZXhwb3J0IGNsYXNzIENvbXBsZXhDb21wdXRlZExpc3QgZXh0ZW5kcyBDb21wbGV4Q29tcHV0ZWRBdHRyaWJ1dGUge1xuICBjb25zdHJ1Y3Rvcihwcm90ZWN0ZWQgdGVycmFmb3JtUmVzb3VyY2U6IElUZXJyYWZvcm1SZXNvdXJjZSwgcHJvdGVjdGVkIHRlcnJhZm9ybUF0dHJpYnV0ZTogc3RyaW5nLCBwcm90ZWN0ZWQgaW5kZXg6IHN0cmluZykge1xuICAgIHN1cGVyKHRlcnJhZm9ybVJlc291cmNlLCB0ZXJyYWZvcm1BdHRyaWJ1dGUpXG4gIH1cblxuICBwcm90ZWN0ZWQgaW50ZXJwb2xhdGlvbkZvckF0dHJpYnV0ZShwcm9wZXJ0eTogc3RyaW5nKSB7XG4gICAgcmV0dXJuIGBcXCR7JHt0aGlzLnRlcnJhZm9ybVJlc291cmNlLnRlcnJhZm9ybVJlc291cmNlVHlwZX0uJHt0aGlzLnRlcnJhZm9ybVJlc291cmNlLmZyaWVuZGx5VW5pcXVlSWR9LiR7dGhpcy50ZXJyYWZvcm1BdHRyaWJ1dGV9LiR7dGhpcy5pbmRleH0uJHtwcm9wZXJ0eX19YDtcbiAgfVxufVxuIl19 |
@@ -0,1 +1,3 @@ | ||
export * from './tokens'; | ||
export * from './terraform-stack'; | ||
export * from './terraform-element'; | ||
@@ -5,7 +7,7 @@ export * from './terraform-module'; | ||
export * from './terraform-resource'; | ||
export * from './terraform-data-source'; | ||
export * from './terraform-output'; | ||
export * from './terraform-stack'; | ||
export * from './complex-computed-list'; | ||
export * from './resource'; | ||
export * from './testing'; | ||
export * from './app'; | ||
export { Token } from './tokens/token'; |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./terraform-element")); | ||
__export(require("./terraform-module")); | ||
__export(require("./terraform-provider")); | ||
__export(require("./terraform-resource")); | ||
__export(require("./terraform-output")); | ||
__export(require("./terraform-stack")); | ||
__export(require("./complex-computed-list")); | ||
__export(require("./testing")); | ||
__export(require("./app")); | ||
var token_1 = require("./tokens/token"); | ||
exports.Token = token_1.Token; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHlDQUFvQztBQUNwQyx3Q0FBbUM7QUFDbkMsMENBQXFDO0FBQ3JDLDBDQUFxQztBQUNyQyx3Q0FBbUM7QUFDbkMsdUNBQWtDO0FBQ2xDLDZDQUF3QztBQUN4QywrQkFBMEI7QUFDMUIsMkJBQXNCO0FBQ3RCLHdDQUFzQztBQUE3Qix3QkFBQSxLQUFLLENBQUEiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL3RlcnJhZm9ybS1lbGVtZW50JztcbmV4cG9ydCAqIGZyb20gJy4vdGVycmFmb3JtLW1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL3RlcnJhZm9ybS1wcm92aWRlcic7XG5leHBvcnQgKiBmcm9tICcuL3RlcnJhZm9ybS1yZXNvdXJjZSc7XG5leHBvcnQgKiBmcm9tICcuL3RlcnJhZm9ybS1vdXRwdXQnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tc3RhY2snO1xuZXhwb3J0ICogZnJvbSAnLi9jb21wbGV4LWNvbXB1dGVkLWxpc3QnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXN0aW5nJztcbmV4cG9ydCAqIGZyb20gJy4vYXBwJztcbmV4cG9ydCB7IFRva2VuIH0gZnJvbSAnLi90b2tlbnMvdG9rZW4nIl19 | ||
__exportStar(require("./tokens"), exports); | ||
__exportStar(require("./terraform-stack"), exports); | ||
__exportStar(require("./terraform-element"), exports); | ||
__exportStar(require("./terraform-module"), exports); | ||
__exportStar(require("./terraform-provider"), exports); | ||
__exportStar(require("./terraform-resource"), exports); | ||
__exportStar(require("./terraform-data-source"), exports); | ||
__exportStar(require("./terraform-output"), exports); | ||
__exportStar(require("./complex-computed-list"), exports); | ||
__exportStar(require("./resource"), exports); | ||
__exportStar(require("./testing"), exports); | ||
__exportStar(require("./app"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBd0I7QUFDeEIsb0RBQWtDO0FBQ2xDLHNEQUFvQztBQUNwQyxxREFBbUM7QUFDbkMsdURBQXFDO0FBQ3JDLHVEQUFxQztBQUNyQywwREFBd0M7QUFDeEMscURBQW1DO0FBQ25DLDBEQUF3QztBQUN4Qyw2Q0FBMEI7QUFDMUIsNENBQTBCO0FBQzFCLHdDQUFzQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdG9rZW5zJ1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tc3RhY2snO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tZWxlbWVudCc7XG5leHBvcnQgKiBmcm9tICcuL3RlcnJhZm9ybS1tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tcHJvdmlkZXInO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tcmVzb3VyY2UnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tZGF0YS1zb3VyY2UnO1xuZXhwb3J0ICogZnJvbSAnLi90ZXJyYWZvcm0tb3V0cHV0JztcbmV4cG9ydCAqIGZyb20gJy4vY29tcGxleC1jb21wdXRlZC1saXN0JztcbmV4cG9ydCAqIGZyb20gJy4vcmVzb3VyY2UnXG5leHBvcnQgKiBmcm9tICcuL3Rlc3RpbmcnO1xuZXhwb3J0ICogZnJvbSAnLi9hcHAnOyJdfQ== |
@@ -1,4 +0,17 @@ | ||
import { Construct } from "constructs"; | ||
import { Construct, Node } from "constructs"; | ||
import { TerraformStack } from './terraform-stack'; | ||
export interface TerraformElementMetadata { | ||
readonly path: string; | ||
readonly uniqueId: string; | ||
readonly stackTrace: string[]; | ||
} | ||
export declare class TerraformElement extends Construct { | ||
readonly stack: TerraformStack; | ||
constructor(scope: Construct, id: string); | ||
get node(): Node; | ||
toTerraform(): any; | ||
get friendlyUniqueId(): string; | ||
protected get nodeMetadata(): { | ||
[key: string]: any; | ||
}; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerraformElement = void 0; | ||
const constructs_1 = require("constructs"); | ||
const unique_1 = require("./private/unique"); | ||
const terraform_stack_1 = require("./terraform-stack"); | ||
class TerraformElement extends constructs_1.Construct { | ||
constructor(scope, id) { | ||
super(scope, id); | ||
this.node.addMetadata('stacktrace', 'trace'); | ||
this.stack = terraform_stack_1.TerraformStack.of(this); | ||
} | ||
get node() { | ||
return constructs_1.Node.of(this); | ||
} | ||
toTerraform() { | ||
return {}; | ||
} | ||
get friendlyUniqueId() { | ||
const node = this.node; | ||
const components = node.scopes.slice(1).map(c => constructs_1.Node.of(c).id); | ||
return components.length > 0 ? unique_1.makeUniqueId(components) : ''; | ||
} | ||
get nodeMetadata() { | ||
var _a; | ||
return { | ||
metadata: { | ||
path: this.node.path, | ||
uniqueId: this.friendlyUniqueId, | ||
stackTrace: (_a = this.node.metadata.find((e) => e.type === 'stacktrace')) === null || _a === void 0 ? void 0 : _a.trace | ||
} | ||
}; | ||
} | ||
} | ||
exports.TerraformElement = TerraformElement; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLWVsZW1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXJyYWZvcm0tZWxlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDJDQUF1QztBQUV2QyxNQUFhLGdCQUFpQixTQUFRLHNCQUFTO0lBQ3RDLFdBQVc7UUFDaEIsT0FBTyxFQUFHLENBQUM7SUFDYixDQUFDO0NBQ0Y7QUFKRCw0Q0FJQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnN0cnVjdCB9IGZyb20gXCJjb25zdHJ1Y3RzXCI7XG5cbmV4cG9ydCBjbGFzcyBUZXJyYWZvcm1FbGVtZW50IGV4dGVuZHMgQ29uc3RydWN0IHtcbiAgcHVibGljIHRvVGVycmFmb3JtKCk6IGFueSB7XG4gICAgcmV0dXJuIHsgfTtcbiAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLWVsZW1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0ZXJyYWZvcm0tZWxlbWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBp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1xuICAgIHJldHVybiBOb2RlLm9mKHRoaXMpXG4gIH1cblxuICBwdWJsaWMgdG9UZXJyYWZvcm0oKTogYW55IHtcbiAgICByZXR1cm4geyB9O1xuICB9XG5cbiAgcHVibGljIGdldCBmcmllbmRseVVuaXF1ZUlkKCkge1xuICAgIGNvbnN0IG5vZGUgPSB0aGlzLm5vZGVcbiAgICBjb25zdCBjb21wb25lbnRzID0gbm9kZS5zY29wZXMuc2xpY2UoMSkubWFwKGMgPT4gTm9kZS5vZihjKS5pZCk7XG4gICAgcmV0dXJuIGNvbXBvbmVudHMubGVuZ3RoID4gMCA/IG1ha2VVbmlxdWVJZChjb21wb25lbnRzKSA6ICcnO1xuICB9XG5cbiAgcHJvdGVjdGVkIGdldCBub2RlTWV0YWRhdGEoKToge1trZXk6IHN0cmluZ106IGFueX0ge1xuICAgIHJldHVybiB7XG4gICAgICBtZXRhZGF0YToge1xuICAgICAgICBwYXRoOiB0aGlzLm5vZGUucGF0aCxcbiAgICAgICAgdW5pcXVlSWQ6IHRoaXMuZnJpZW5kbHlVbmlxdWVJZCxcbiAgICAgICAgc3RhY2tUcmFjZTogdGhpcy5ub2RlLm1ldGFkYXRhLmZpbmQoKGUpID0+IGUudHlwZSA9PT0gJ3N0YWNrdHJhY2UnKT8udHJhY2VcbiAgICAgIH0gYXMgVGVycmFmb3JtRWxlbWVudE1ldGFkYXRhXG4gICAgfVxuICB9XG59Il19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constructs_1 = require("constructs"); | ||
exports.TerraformModule = void 0; | ||
const terraform_element_1 = require("./terraform-element"); | ||
@@ -16,12 +16,14 @@ class TerraformModule extends terraform_element_1.TerraformElement { | ||
interpolationForOutput(moduleOutput) { | ||
return `\${module.${constructs_1.Node.of(this).uniqueId}.${moduleOutput}}`; | ||
return `\${module.${this.friendlyUniqueId}.${moduleOutput}}`; | ||
} | ||
toTerraform() { | ||
const attributes = { | ||
...this.synthesizeAttributes(), | ||
source: this.source, | ||
version: this.version, | ||
"//": this.nodeMetadata | ||
}; | ||
return { | ||
module: { | ||
[constructs_1.Node.of(this).uniqueId]: { | ||
...this.synthesizeAttributes(), | ||
source: this.source, | ||
version: this.version, | ||
} | ||
[this.friendlyUniqueId]: attributes | ||
} | ||
@@ -32,2 +34,2 @@ }; | ||
exports.TerraformModule = TerraformModule; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLW1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlcnJhZm9ybS1tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBNkM7QUFDN0MsMkRBQXVEO0FBT3ZELE1BQXNCLGVBQWdCLFNBQVEsb0NBQWdCO0lBSzVELFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsT0FBK0I7UUFDdkUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLENBQUMsTUFBTSxHQUFHLE9BQU8sQ0FBQyxNQUFNLENBQUM7UUFDN0IsSUFBSSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMsT0FBTyxDQUFDO0lBQ2pDLENBQUM7SUFFRCxzQ0FBc0M7SUFDNUIsb0JBQW9CO1FBQzVCLE9BQU8sRUFBRSxDQUFBO0lBQ1gsQ0FBQztJQUVNLHNCQUFzQixDQUFDLFlBQW9CO1FBQ2hELE9BQU8sYUFBYSxpQkFBSSxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQyxRQUFRLElBQUksWUFBWSxHQUFVLENBQUM7SUFDdkUsQ0FBQztJQUVNLFdBQVc7UUFDaEIsT0FBTztZQUNMLE1BQU0sRUFBRTtnQkFDTixDQUFDLGlCQUFJLENBQUMsRUFBRSxDQUFDLElBQUksQ0FBQyxDQUFDLFFBQVEsQ0FBQyxFQUFFO29CQUN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6IHN0cmluZywgb3B0aW9uczogVGVycmFmb3JtTW9kdWxlT3B0aW9ucykge1xuICAgIHN1cGVyKHNjb3BlLCBpZCk7XG5cbiAgICB0aGlzLnNvdXJjZSA9IG9wdGlvbnMuc291cmNlO1xuICAgIHRoaXMudmVyc2lvbiA9IG9wdGlvbnMudmVyc2lvbjtcbiAgfVxuXG4gIC8vIGpzaWkgY2FuJ3QgaGFuZGxlIGFic3RyYWN0IGNsYXNzZXM/XG4gIHByb3RlY3RlZCBzeW50aGVzaXplQXR0cmlidXRlcygpOiB7IFtuYW1lOiBzdHJpbmddOiBhbnkgfSB7XG4gICAgcmV0dXJuIHt9XG4gIH1cblxuICBwdWJsaWMgaW50ZXJwb2xhdGlvbkZvck91dHB1dChtb2R1bGVPdXRwdXQ6IHN0cmluZykge1xuICAgIHJldHVybiBgXFwke21vZHVsZS4ke3RoaXMuZnJpZW5kbHlVbmlxdWVJZH0uJHttb2R1bGVPdXRwdXR9fWAgYXMgYW55O1xuICB9XG5cbiAgcHVibGljIHRvVGVycmFmb3JtKCk6IGFueSB7XG4gICAgY29uc3QgYXR0cmlidXRlcyA9IHtcbiAgICAgIC4uLnRoaXMuc3ludGhlc2l6ZUF0dHJpYnV0ZXMoKSxcbiAgICAgIHNvdXJjZTogdGhpcy5zb3VyY2UsXG4gICAgICB2ZXJzaW9uOiB0aGlzLnZlcnNpb24sXG4gICAgICBcIi8vXCI6IHRoaXMubm9kZU1ldGFkYXRhXG4gICAgfVxuXG4gICAgcmV0dXJuIHtcbiAgICAgIG1vZHVsZToge1xuICAgICAgICBbdGhpcy5mcmllbmRseVVuaXF1ZUlkXTogYXR0cmlidXRlc1xuICAgICAgfVxuICAgIH1cbiAgfVxufSJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constructs_1 = require("constructs"); | ||
exports.TerraformOutput = void 0; | ||
const terraform_element_1 = require("./terraform-element"); | ||
@@ -26,3 +26,3 @@ const util_1 = require("./util"); | ||
output: { | ||
[constructs_1.Node.of(this).uniqueId]: util_1.keysToSnakeCase(this.synthesizeAttributes()) | ||
[this.friendlyUniqueId]: util_1.keysToSnakeCase(this.synthesizeAttributes()) | ||
} | ||
@@ -33,2 +33,2 @@ }; | ||
exports.TerraformOutput = TerraformOutput; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLW91dHB1dC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlcnJhZm9ybS1vdXRwdXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSwyQ0FBNkM7QUFDN0MsMkRBQXVEO0FBRXZELGlDQUF3QztBQVN4QyxNQUFhLGVBQWdCLFNBQVEsb0NBQWdCO0lBTW5ELFlBQVksS0FBZ0IsRUFBRSxFQUFVLEVBQUUsTUFBNkI7UUFDckUsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUVqQixJQUFJLENBQUMsS0FBSyxHQUFHLE1BQU0sQ0FBQyxLQUFLLENBQUM7UUFDMUIsSUFBSSxDQUFDLFdBQVcsR0FBRyxNQUFNLENBQUMsV0FBVyxDQUFDO1FBQ3RDLElBQUksQ0FBQyxTQUFTLEdBQUcsTUFBTSxDQUFDLFNBQVMsQ0FBQztRQUNsQyxJQUFJLENBQUMsU0FBUyxHQUFHLE1BQU0sQ0FBQyxTQUFTLENBQUM7SUFDcEMsQ0FBQztJQUVNLG9CQUFvQjs7UUFDekIsT0FBTztZQUNMLEtBQUssRUFBRSxJQUFJLENBQUMsS0FBSztZQUNqQixXQUFXLEVBQUUsSUFBSSxDQUFDLFdBQVc7WUFDN0IsU0FBUyxFQUFFLElBQUksQ0FBQyxTQUFTO1lBQ3pCLFNBQVMsUUFBRSxJQUFJLENBQUMsU0FBUywwQ0FBRSxHQUFHLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxNQUFNLFFBQVEsQ0F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XJjZVtdO1xuXG4gIGNvbnN0cnVjdG9yKHNjb3BlOiBDb25zdHJ1Y3QsIGlkOiBzdHJpbmcsIGNvbmZpZzogVGVycmFmb3JtT3V0cHV0Q29uZmlnKSB7XG4gICAgc3VwZXIoc2NvcGUsIGlkKTtcblxuICAgIHRoaXMudmFsdWUgPSBjb25maWcudmFsdWU7XG4gICAgdGhpcy5kZXNjcmlwdGlvbiA9IGNvbmZpZy5kZXNjcmlwdGlvbjtcbiAgICB0aGlzLnNlbnNpdGl2ZSA9IGNvbmZpZy5zZW5zaXRpdmU7XG4gICAgdGhpcy5kZXBlbmRzT24gPSBjb25maWcuZGVwZW5kc09uO1xuICB9XG5cbiAgcHVibGljIHN5bnRoZXNpemVBdHRyaWJ1dGVzKCk6IHtba2V5OiBzdHJpbmddOiBhbnl9IHtcbiAgICByZXR1cm4ge1xuICAgICAgdmFsdWU6IHRoaXMudmFsdWUsXG4gICAgICBkZXNjcmlwdGlvbjogdGhpcy5kZXNjcmlwdGlvbixcbiAgICAgIHNlbnNpdGl2ZTogdGhpcy5zZW5zaXRpdmUsXG4gICAgICBkZXBlbmRzT246IHRoaXMuZGVwZW5kc09uPy5tYXAocmVzb3VyY2UgPT4gYFxcJHske3Jlc291cmNlLmZxbn19YClcbiAgICB9XG4gIH1cblxuICBwdWJsaWMgdG9UZXJyYWZvcm0oKTogYW55IHtcbiAgICByZXR1cm4ge1xuICAgICAgb3V0cHV0OiB7XG4gICAgICAgIFt0aGlzLmZyaWVuZGx5VW5pcXVlSWRdOiBrZXlzVG9TbmFrZUNhc2UodGhpcy5zeW50aGVzaXplQXR0cmlidXRlcygpKVxuICAgICAgfVxuICAgIH07XG4gIH1cbn0iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerraformProvider = void 0; | ||
const tokens_1 = require("./tokens"); | ||
@@ -60,2 +61,2 @@ const terraform_element_1 = require("./terraform-element"); | ||
exports.TerraformProvider = TerraformProvider; | ||
//# sourceMapp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VdOiB0aGlzLnRlcnJhZm9ybUdlbmVyYXRvck1ldGFkYXRhPy5wcm92aWRlclZlcnNpb25Db25zdHJhaW50XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgICBwcm92aWRlcjoge1xuICAgICAgICBbdGhpcy50ZXJyYWZvcm1SZXNvdXJjZVR5cGVdOiBbZGVlcE1lcmdlKGtleXNUb1NuYWtlQ2FzZSh0aGlzLnN5bnRoZXNpemVBdHRyaWJ1dGVzKCkpLCB0aGlzLnJhd092ZXJyaWRlcywgdGhpcy5tZXRhQXR0cmlidXRlcyldXG4gICAgICB9XG4gICAgfTtcbiAgfVxufSJdfQ== |
import { Construct } from "constructs"; | ||
import { TerraformElement } from "./terraform-element"; | ||
import { TerraformProvider } from "./terraform-provider"; | ||
export interface ITerraformResource { | ||
readonly terraformResourceType: string; | ||
readonly fqn: string; | ||
readonly friendlyUniqueId: string; | ||
dependsOn?: string[]; | ||
count?: number; | ||
provider?: TerraformProvider; | ||
lifecycle?: TerraformResourceLifecycle; | ||
} | ||
export interface TerraformResourceLifecycle { | ||
@@ -23,7 +32,7 @@ readonly createBeforeDestroy?: boolean; | ||
} | ||
export declare class TerraformResource extends TerraformElement { | ||
export declare class TerraformResource extends TerraformElement implements ITerraformResource { | ||
readonly terraformResourceType: string; | ||
readonly terraformGeneratorMetadata?: TerraformGeneratorMetadata; | ||
private readonly rawOverrides; | ||
dependsOn?: TerraformResource[]; | ||
dependsOn?: string[]; | ||
count?: number; | ||
@@ -30,0 +39,0 @@ provider?: TerraformProvider; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const constructs_1 = require("constructs"); | ||
exports.TerraformResource = void 0; | ||
const tokens_1 = require("./tokens"); | ||
@@ -13,3 +13,5 @@ const terraform_element_1 = require("./terraform-element"); | ||
this.terraformGeneratorMetadata = config.terraformGeneratorMetadata; | ||
this.dependsOn = config.dependsOn; | ||
if (Array.isArray(config.dependsOn)) { | ||
this.dependsOn = config.dependsOn.map(dependency => dependency.fqn); | ||
} | ||
this.count = config.count; | ||
@@ -50,3 +52,3 @@ this.provider = config.provider; | ||
get fqn() { | ||
return tokens_1.Token.asString(`${this.terraformResourceType}.${constructs_1.Node.of(this).uniqueId}`); | ||
return tokens_1.Token.asString(`${this.terraformResourceType}.${this.friendlyUniqueId}`); | ||
} | ||
@@ -70,6 +72,8 @@ get terraformMetaArguments() { | ||
toTerraform() { | ||
const attributes = util_1.deepMerge(util_1.keysToSnakeCase(this.synthesizeAttributes()), util_1.keysToSnakeCase(this.terraformMetaArguments), this.rawOverrides); | ||
attributes['//'] = this.nodeMetadata; | ||
return { | ||
resource: { | ||
[this.terraformResourceType]: { | ||
[constructs_1.Node.of(this).uniqueId]: util_1.deepMerge(util_1.keysToSnakeCase(this.synthesizeAttributes()), util_1.keysToSnakeCase(this.terraformMetaArguments), this.rawOverrides) | ||
[this.friendlyUniqueId]: attributes | ||
} | ||
@@ -80,6 +84,6 @@ } | ||
interpolationForAttribute(terraformAttribute) { | ||
return `\${${this.terraformResourceType}.${constructs_1.Node.of(this).uniqueId}.${terraformAttribute}}`; | ||
return `\${${this.terraformResourceType}.${this.friendlyUniqueId}.${terraformAttribute}}`; | ||
} | ||
} | ||
exports.TerraformResource = TerraformResource; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLXJlc291cmNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVycmFmb3JtLXJlc291cmNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTZDO0FBQzdDLHFDQUFnQztBQUNoQywyREFBdUQ7QUFFdkQsaUNBQW9EO0FBeUJwRCxNQUFhLGlCQUFrQixTQUFRLG9DQUFnQjtJQVlyRCxZQUFZLEtBQWdCLEVBQUUsRUFBVSxFQUFFLE1BQStCO1FBQ3ZFLEtBQUssQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUFDLEN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VVuaXF1ZUlkfS4ke3RlcnJhZm9ybUF0dHJpYnV0ZX19YDtcbiAgfVxufSJdfQ== |
@@ -1,7 +0,16 @@ | ||
import { Construct, ISynthesisSession } from 'constructs'; | ||
import { Construct, IConstruct, ISynthesisSession } from 'constructs'; | ||
import { TerraformProvider } from './terraform-provider'; | ||
export interface TerraformStackMetadata { | ||
readonly stackName: string; | ||
readonly version: string; | ||
} | ||
export declare class TerraformStack extends Construct { | ||
readonly artifactFile: string; | ||
private readonly rawOverrides; | ||
private readonly cdktfVersion; | ||
constructor(scope: Construct, id: string); | ||
static isStack(x: any): x is TerraformStack; | ||
static of(construct: IConstruct): TerraformStack; | ||
addOverride(path: string, value: any): void; | ||
allProviders(): TerraformProvider[]; | ||
toTerraform(): any; | ||
@@ -8,0 +17,0 @@ onSynthesize(session: ISynthesisSession): void; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TerraformStack = void 0; | ||
const constructs_1 = require("constructs"); | ||
@@ -9,2 +10,4 @@ const _tokens_1 = require("./_tokens"); | ||
const util_1 = require("./util"); | ||
const terraform_provider_1 = require("./terraform-provider"); | ||
const STACK_SYMBOL = Symbol.for('ckdtf/TerraformStack'); | ||
class TerraformStack extends constructs_1.Construct { | ||
@@ -15,3 +18,21 @@ constructor(scope, id) { | ||
this.artifactFile = `${constructs_1.Node.of(this).uniqueId}.tf.json`; | ||
this.cdktfVersion = constructs_1.Node.of(this).tryGetContext('cdktfVersion'); | ||
Object.defineProperty(this, STACK_SYMBOL, { value: true }); | ||
} | ||
static isStack(x) { | ||
return x !== null && typeof (x) === 'object' && STACK_SYMBOL in x; | ||
} | ||
static of(construct) { | ||
return _lookup(construct); | ||
function _lookup(c) { | ||
if (TerraformStack.isStack(c)) { | ||
return c; | ||
} | ||
const node = constructs_1.Node.of(c); | ||
if (!node.scope) { | ||
throw new Error(`No stack could be identified for the construct at path '${constructs_1.Node.of(construct).path}'`); | ||
} | ||
return _lookup(node.scope); | ||
} | ||
} | ||
addOverride(path, value) { | ||
@@ -35,4 +56,24 @@ const parts = path.split('.'); | ||
} | ||
allProviders() { | ||
const providers = []; | ||
const visit = async (node) => { | ||
if (node instanceof terraform_provider_1.TerraformProvider) { | ||
providers.push(node); | ||
} | ||
for (const child of constructs_1.Node.of(node).children) { | ||
visit(child); | ||
} | ||
}; | ||
visit(this); | ||
return _tokens_1.resolve(this, providers); | ||
} | ||
toTerraform() { | ||
const tf = {}; | ||
const tf = { | ||
"//": { | ||
metadata: { | ||
version: this.cdktfVersion, | ||
stackName: this.artifactFile.replace('.tf.json', ''), | ||
} | ||
} | ||
}; | ||
const visit = (node) => { | ||
@@ -64,2 +105,2 @@ if (node instanceof terraform_element_1.TerraformElement) { | ||
exports.TerraformStack = TerraformStack; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVycmFmb3JtLXN0YWNrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVycmFmb3JtLXN0YWNrLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMkNBQTRFO0FBQzVFLHVDQUFtQztBQUNuQyx5QkFBeUI7QUFDekIsNkJBQTZCO0FBQzdCLDJEQUF1RDtBQUN2RCxpQ0FBbUM7QUFFbkMsTUFBYSxjQUFlLFNBQVEsc0JBQVM7SUFJM0MsWUFBWSxLQUFnQixFQUFFLEVBQVU7UUFDdEMsS0FBSyxDQUFDLEtBQUssRUFBRSxFQUFFLENBQUMsQ0FBQztRQUhGLGlCQUFZLEdBQVEsRUFBRSxDQUFBO1FBS3JDLElBQUksQ0FBQyxZQUFZLEdBQUcsR0FBRyxpQkFBSSxDQUFDLEVBQUUsQ0FBQyxJQUFJLENBQUMsQ0FBQyxRQUFRLFVBQVUsQ0FBQztJQUMxRCxDQUFDO0lBRU0sV0FBVyxDQUFDLElBQVksRUFBRSxLQUFVO1FBQ3pDLE1BQU0sS0FBSyxHQUFHLElBQUksQ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odGYsICBub2RlLnRvVGVycmFmb3JtKCkpO1xuICAgICAgfVxuXG4gICAgICBmb3IgKGNvbnN0IGNoaWxkIG9mIE5vZGUub2Yobm9kZSkuY2hpbGRyZW4pIHtcbiAgICAgICAgdmlzaXQoY2hpbGQpO1xuICAgICAgfVxuICAgIH1cblxuICAgIHZpc2l0KHRoaXMpO1xuXG4gICAgZGVlcE1lcmdlKHRmLCB0aGlzLnJhd092ZXJyaWRlcyk7XG5cbiAgICByZXR1cm4gcmVzb2x2ZSh0aGlzLCB0Zik7XG4gIH1cblxuICBwdWJsaWMgb25TeW50aGVzaXplKHNlc3Npb246IElTeW50aGVzaXNTZXNzaW9uKSB7XG4gICAgY29uc3QgcmVzb3VyY2VPdXRwdXQgPSBwYXRoLmpvaW4oc2Vzc2lvbi5vdXRkaXIsIHRoaXMuYXJ0aWZhY3RGaWxlKTtcbiAgICBmcy53cml0ZUZpbGVTeW5jKHJlc291cmNlT3V0cHV0LCBKU09OLnN0cmluZ2lmeSh0aGlzLnRvVGVycmFmb3JtKCksIHVuZGVmaW5lZCwgMikpO1xuICAgIHRoaXMubGlua0RvdFRlcnJhZm9ybShzZXNzaW9uLm91dGRpcilcbiAgfVxuXG4gIHByaXZhdGUgbGlua0RvdFRlcnJhZm9ybShvdXRkaXI6IHN0cmluZyk6IHZvaWQge1xuICAgIGNvbnN0IGRpck5hbWUgPSAnLnRlcnJhZm9ybSc7XG4gICAgY29uc3QgbGluayA9IHBhdGguam9pbihwYXRoLnJlc29sdmUob3V0ZGlyKSwgZGlyTmFtZSk7XG4gICAgY29uc3QgdGFyZ2V0ID0gcGF0aC5qb2luKHByb2Nlc3MuY3dkKCksIGRpck5hbWUpO1xuICAgIGlmICghZnMuZXhpc3RzU3luYyhsaW5rKSkgZnMuc3ltbGlua1N5bmModGFyZ2V0LCBsaW5rKTtcbiAgfVxufVxuIl19 |
@@ -12,2 +12,3 @@ import { App } from '../lib'; | ||
static app(): App; | ||
static stubVersion(app: App): App; | ||
/** | ||
@@ -14,0 +15,0 @@ * Returns the Terraform synthesized JSON. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Testing = void 0; | ||
const constructs_1 = require("constructs"); | ||
const fs = require("fs"); | ||
@@ -17,4 +19,9 @@ const path = require("path"); | ||
const outdir = fs.mkdtempSync(path.join(os.tmpdir(), 'cdktf.outdir.')); | ||
return new lib_1.App({ outdir }); | ||
const app = new lib_1.App({ outdir, stackTraces: false }); | ||
return this.stubVersion(app); | ||
} | ||
static stubVersion(app) { | ||
constructs_1.Node.of(app).setContext('cdktfVersion', 'stubbed'); | ||
return app; | ||
} | ||
/** | ||
@@ -32,2 +39,2 @@ * Returns the Terraform synthesized JSON. | ||
exports.Testing = Testing; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdGluZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInRlc3RpbmcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFDQSx5QkFBMEI7QUFDMUIsNkJBQThCO0FBQzlCLHlCQUEwQjtBQUMxQixnQ0FBNkI7QUFHN0I7O0dBRUc7QUFDSCxNQUFhLE9BQU87SUFDaEI7OztPQUdHO0lBQ0ksTUFBTSxDQUFDLEdBQUc7UUFDYixNQUFNLE1BQU0sR0FBRyxFQUFFLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLE1BQU0sRUFBRSxFQUFFLGVBQWUsQ0FBQyxDQUFDLENBQUM7UUFDdkUsT0FBTyxJQUFJLFNBQUcsQ0FBQyxFQUFFLE1BQU0sRUFBRSxDQUFDLENBQUM7SUFDL0IsQ0FBQztJQUVEOztPQUVHO0lBQ0ksTUFBTSxDQUFDLEtBQUssQ0FBQyxLQUFxQjtRQUNyQyxPQUFPLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLFdBQVcsRUFBRSxFQU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F0aWMgc3R1YlZlcnNpb24oYXBwOiBBcHApOiBBcHAge1xuICAgICAgICBOb2RlLm9mKGFwcCkuc2V0Q29udGV4dCgnY2RrdGZWZXJzaW9uJywgJ3N0dWJiZWQnKVxuICAgICAgICByZXR1cm4gYXBwXG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmV0dXJucyB0aGUgVGVycmFmb3JtIHN5bnRoZXNpemVkIEpTT04uXG4gICAgICovXG4gICAgcHVibGljIHN0YXRpYyBzeW50aChzdGFjazogVGVycmFmb3JtU3RhY2spIHtcbiAgICAgICAgcmV0dXJuIEpTT04uc3RyaW5naWZ5KHN0YWNrLnRvVGVycmFmb3JtKCksIG51bGwsIDIpXG4gICAgfVxuXG4gICAgLyogaXN0YW5idWwgaWdub3JlIG5leHQgKi9cbiAgICBwcml2YXRlIGNvbnN0cnVjdG9yKCkge1xuICAgICAgICByZXR1cm47XG4gICAgfVxufSJdfQ== |
"use strict"; | ||
function __export(m) { | ||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; | ||
} | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__export(require("./lazy")); | ||
__export(require("./resolvable")); | ||
__export(require("./string-fragments")); | ||
__export(require("./token")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDRCQUF1QjtBQUN2QixrQ0FBNkI7QUFDN0Isd0NBQW1DO0FBQ25DLDZCQUF3QiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gXCIuL2xhenlcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Jlc29sdmFibGVcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3N0cmluZy1mcmFnbWVudHNcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3Rva2VuXCI7Il19 | ||
__exportStar(require("./lazy"), exports); | ||
__exportStar(require("./resolvable"), exports); | ||
__exportStar(require("./string-fragments"), exports); | ||
__exportStar(require("./token"), exports); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSx5Q0FBdUI7QUFDdkIsK0NBQTZCO0FBQzdCLHFEQUFtQztBQUNuQywwQ0FBd0IiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi9sYXp5XCI7XG5leHBvcnQgKiBmcm9tIFwiLi9yZXNvbHZhYmxlXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9zdHJpbmctZnJhZ21lbnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi90b2tlblwiOyJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Lazy = void 0; | ||
// Copied from https://github.com/aws/constructs/blob/e01e47f78ef1e9b600efcd23ff7705aa8d384017/lib/lazy.ts | ||
@@ -109,2 +110,2 @@ /* eslint-disable @typescript-eslint/interface-name-prefix */ | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpb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lIHJlYWRvbmx5IHByb2R1Y2VyOiBJTGlzdFByb2R1Y2VyLCBwcml2YXRlIHJlYWRvbmx5IG9wdGlvbnM6IExhenlMaXN0VmFsdWVPcHRpb25zID0ge30pIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgcHVibGljIHJlc29sdmUoY29udGV4dDogSVJlc29sdmVDb250ZXh0KSB7XG4gICAgY29uc3QgcmV0ID0gdGhpcy5wcm9kdWNlci5wcm9kdWNlKGNvbnRleHQpO1xuICAgIGlmIChyZXQgIT09IHVuZGVmaW5lZCAmJiByZXQubGVuZ3RoID09PSAwICYmIHRoaXMub3B0aW9ucy5vbWl0RW1wdHkpIHtcbiAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgfVxuICAgIHJldHVybiByZXQ7XG4gIH1cbn1cblxuY2xhc3MgTGF6eUFueSBleHRlbmRzIExhenlCYXNlIHtcbiAgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSBwcm9kdWNlcjogSUFueVByb2R1Y2VyLCBwcml2YXRlIHJlYWRvbmx5IG9wdGlvbnM6IExhenlBbnlWYWx1ZU9wdGlvbnMgPSB7fSkge1xuICAgIHN1cGVyKCk7XG4gIH1cblxuICBwdWJsaWMgcmVzb2x2ZShjb250ZXh0OiBJUmVzb2x2ZUNvbnRleHQpIHtcbiAgICBjb25zdCByZXQgPSB0aGlzLnByb2R1Y2VyLnByb2R1Y2UoY29udGV4dCk7XG4gICAgaWYgKEFycmF5LmlzQXJyYXkocmV0KSAmJiByZXQubGVuZ3RoID09PSAwICYmIHRoaXMub3B0aW9ucy5vbWl0RW1wdHlBcnJheSkge1xuICAgICAgcmV0dXJuIHVuZGVmaW5lZDtcbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfVxufSJdfQ== | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGF6eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImxhenkudHM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cm9kdWNlcjogSUxpc3RQcm9kdWNlciwgcHJpdmF0ZSByZWFkb25seSBvcHRpb25zOiBMYXp5TGlzdFZhbHVlT3B0aW9ucyA9IHt9KSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG4gIHB1YmxpYyByZXNvbHZlKGNvbnRleHQ6IElSZXNvbHZlQ29udGV4dCkge1xuICAgIGNvbnN0IHJldCA9IHRoaXMucHJvZHVjZXIucHJvZHVjZShjb250ZXh0KTtcbiAgICBpZiAocmV0ICE9PSB1bmRlZmluZWQgJiYgcmV0Lmxlbmd0aCA9PT0gMCAmJiB0aGlzLm9wdGlvbnMub21pdEVtcHR5KSB7XG4gICAgICByZXR1cm4gdW5kZWZpbmVkO1xuICAgIH1cbiAgICByZXR1cm4gcmV0O1xuICB9XG59XG5cbmNsYXNzIExhenlBbnkgZXh0ZW5kcyBMYXp5QmFzZSB7XG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgcHJvZHVjZXI6IElBbnlQcm9kdWNlciwgcHJpdmF0ZSByZWFkb25seSBvcHRpb25zOiBMYXp5QW55VmFsdWVPcHRpb25zID0ge30pIHtcbiAgICBzdXBlcigpO1xuICB9XG5cbiAgcHVibGljIHJlc29sdmUoY29udGV4dDogSVJlc29sdmVDb250ZXh0KSB7XG4gICAgY29uc3QgcmV0ID0gdGhpcy5wcm9kdWNlci5wcm9kdWNlKGNvbnRleHQpO1xuICAgIGlmIChBcnJheS5pc0FycmF5KHJldCkgJiYgcmV0Lmxlbmd0aCA9PT0gMCAmJiB0aGlzLm9wdGlvbnMub21pdEVtcHR5QXJyYXkpIHtcbiAgICAgIHJldHVybiB1bmRlZmluZWQ7XG4gICAgfVxuICAgIHJldHVybiByZXQ7XG4gIH1cbn0iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DependableTrait = exports.ConcreteDependable = void 0; | ||
/** | ||
@@ -74,2 +75,2 @@ * A set of constructs to be used as a dependable | ||
exports.D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SlbREVQRU5EQUJMRV9TWU1CT0xdID0gdHJhaXQ7XG4gIH1cblxuICAvKipcbiAgICogUmV0dXJuIHRoZSBtYXRjaGluZyBEZXBlbmRhYmxlVHJhaXQgZm9yIHRoZSBnaXZlbiBjbGFzcyBpbnN0YW5jZS5cbiAgICovXG4gIHB1YmxpYyBzdGF0aWMgZ2V0KGluc3RhbmNlOiBJRGVwZW5kYWJsZSk6IERlcGVuZGFibGVUcmFpdCB7XG4gICAgY29uc3QgcmV0ID0gKGluc3RhbmNlIGFzIGFueSlbREVQRU5EQUJMRV9TWU1CT0xdO1xuICAgIGlmICghcmV0KSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYCR7aW5zdGFuY2V9IGRvZXMgbm90IGltcGxlbWVudCBEZXBlbmRhYmxlVHJhaXRgKTtcbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfVxuXG4gIC8qKlxuICAgKiBUaGUgc2V0IG9mIGNvbnN0cnVjdHMgdGhhdCBmb3JtIHRoZSByb290IG9mIHRoaXMgZGVwZW5kYWJsZVxuICAgKlxuICAgKiBBbGwgcmVzb3VyY2VzIHVuZGVyIGFsbCByZXR1cm5lZCBjb25zdHJ1Y3RzIGFyZSBpbmNsdWRlZCBpbiB0aGUgb3JkZXJpbmdcbiAgICogZGVwZW5kZW5jeS5cbiAgICovXG4gIHB1YmxpYyBhYnN0cmFjdCByZWFkb25seSBkZXBlbmRlbmN5Um9vdHM6IElDb25zdHJ1Y3RbXTtcbn1cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.extractTokenDouble = exports.createTokenDouble = exports.unresolved = exports.containsListTokenElement = exports.NullConcat = exports.regexQuote = exports.TokenString = exports.VALID_KEY_CHARS = exports.END_TOKEN_MARKER = exports.BEGIN_LIST_TOKEN_MARKER = exports.BEGIN_STRING_TOKEN_MARKER = void 0; | ||
const string_fragments_1 = require("../string-fragments"); | ||
@@ -202,2 +203,2 @@ const token_1 = require("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ZXcgVWludDMyQXJyYXkoYnVmKTtcblxuICAvLyB0c2xpbnQ6ZGlzYWJsZTpuby1iaXR3aXNlXG4gIGlmICgoaW50c1sxXSAmIDB4RkZGRjAwMDApICE9PSBET1VCTEVfVE9LRU5fTUFSS0VSX0JJVFMpIHtcbiAgICByZXR1cm4gdW5kZWZpbmVkO1xuICB9XG5cbiAgLy8gTXVzdCB1c2UgKyBpbnN0ZWFkIG9mIHwgaGVyZSAoYml0d2lzZSBvcGVyYXRpb25zXG4gIC8vIHdpbGwgZm9yY2UgMzItYml0cyBpbnRlZ2VyIGFyaXRobWV0aWMsICsgd2lsbCBub3QpLlxuICByZXR1cm4gaW50c1swXSArIHNobDMyKGludHNbMV0gJiAweEZGRkYpO1xuICAvLyB0c2xpbnQ6ZW5hYmxlOm5vLWJpdHdpc2Vcbn1cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Intrinsic = void 0; | ||
const token_1 = require("../token"); | ||
@@ -66,2 +67,2 @@ const stack_trace_1 = require("./stack-trace"); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50cmluc2ljLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiaW50cmluc2ljLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBRUEsb0NBQWlDO0FBQ2pDLCtDQUFrRDtBQUVsRDs7Ozs7Ozs7O0dBU0c7QUFDSCxNQUFhLFNBQVM7SUFRcEIsWUFBWSxLQUFVO1FBQ3BCLElBQUksVUFBVSxDQUFDLEtBQUssQ0FBQyxFQUFFO1lBQ3JCLE1BQU0sSUFBSSxLQUFLLENBQUMsMkRBQTJELEtBQUssRUFBRSxDQUFDLENBQUM7U0FDckY7UUFFRCxJQUFJLENBQUMsYUFBYSxHQUFHLCtCQUFpQixFQUFFLENBQUM7UUFDekMsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLENB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XJyb3IsIGJ1dCBzaW5jZSBKU09OLnN0cmluZ2lmeSgpIGlzIG9mdGVuIHVzZWQgaW5cbiAgICAvLyBlcnJvciBtZXNzYWdlcyB0byBwcm9kdWNlIGEgcmVhZGFibGUgcmVwcmVzZW50YXRpb24gb2YgYW4gb2JqZWN0LCBpZiB3ZVxuICAgIC8vIHRocm93IGhlcmUgd2UnbGwgb2JmdXNjYXRlIHRoYXQgZGVzY3JpcHRpdmUgZXJyb3Igd2l0aCBzb21ldGhpbmcgd29yc2UuXG4gICAgLy8gU28gcmV0dXJuIGEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIHRoYXQgaW5kaWNhdGVzIHRoaXMgdGhpbmcgaXMgYSB0b2tlblxuICAgIC8vIGFuZCBuZWVkcyByZXNvbHZpbmcuXG4gICAgcmV0dXJuIGA8dW5yZXNvbHZlZC10b2tlbj5gO1xuICB9XG5cbiAgLyoqXG4gICAqIENyZWF0ZXMgYSB0aHJvd2FibGUgRXJyb3Igb2JqZWN0IHRoYXQgY29udGFpbnMgdGhlIHRva2VuIGNyZWF0aW9uIHN0YWNrIHRyYWNlLlxuICAgKiBAcGFyYW0gbWVzc2FnZSBFcnJvciBtZXNzYWdlXG4gICAqL1xuICBwcm90ZWN0ZWQgbmV3RXJyb3IobWVzc2FnZTogc3RyaW5nKTogYW55IHtcbiAgICByZXR1cm4gbmV3IEVycm9yKGAke21lc3NhZ2V9XFxuVG9rZW4gY3JlYXRlZDpcXG4gICAgYXQgJHt0aGlzLmNyZWF0aW9uU3RhY2suam9pbignXFxuICAgIGF0ICcpfVxcbkVycm9yIHRocm93bjpgKTtcbiAgfVxufVxuXG5mdW5jdGlvbiBpc0Z1bmN0aW9uKHg6IGFueSkge1xuICByZXR1cm4gdHlwZW9mIHggPT09ICdmdW5jdGlvbic7XG59XG4iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RememberingTokenResolver = exports.findTokens = exports.resolve = void 0; | ||
const resolvable_1 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va2VuTWFwLmluc3RhbmNlKCkubG9va3VwTnVtYmVyVG9rZW4oeCk7XG4gIGlmICh0b2tlbiA9PT0gdW5kZWZpbmVkKSB7IHJldHVybiB4OyB9XG4gIHJldHVybiBjb250ZXh0LnJlc29sdmUodG9rZW4pO1xufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.captureStackTrace = void 0; | ||
// copied from https://github.com/aws/constructs/blob/e01e47f78ef1e9b600efcd23ff7705aa8d384017/lib/private/stack-trace.ts | ||
@@ -22,2 +23,2 @@ // tslint:disable-next-line:ban-types | ||
exports.captureStackTrace = captureStackTrace; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RhY2stdHJhY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzdGFjay10cmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLHlIQUF5SDtBQUN6SCxxQ0FBcUM7QUFDckMsU0FBZ0IsaUJBQWlCLENBQUMsS0FBZ0I7SUFDaEQsS0FBSyxHQUFHLEtBQUssSUFBSSxpQkFBaUIsQ0FBQyxDQUFDLDhCQUE4QjtJQUNsRSxNQUFNLE1BQU0sR0FBRyxFQUFFLEtBQUssRUFBRSxFQUFFLEVBQUUsQ0FBQztJQUM3QixNQUFNLGFBQWEsR0FBRyxLQUFLLENBQUMsZUFBZSxDQUFDO0lBQzVDLElBQUk7UUFDRixLQUFLLENBQUMsZUFBZSxHQUFHLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQztRQUNoRCxLQUFLLENBQUMsaUJBQWlCLENBQUMsTUFBTSxFQUFFLEtBQUssQ0FBQyxDQUFDO0tBQ3hDO1lBQVM7UUFDUixLQUFLLENBQUMsZUFBZSxHQUFHLGFBQWEsQ0FBQztLQUN2QztJQUNELElBQUksQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFO1FBQ2pCLE9BQU8sRUFBRS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QUMsQ0FBQztBQUNoRixDQUFDO0FBZEQsOENBY0MiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBjb3BpZWQgZnJvbSBodHRwczovL2dpdGh1Yi5jb20vYXdzL2NvbnN0cnVjdHMvYmxvYi9lMDFlNDdmNzhlZjFlOWI2MDBlZmNkMjNmZjc3MDVhYThkMzg0MDE3L2xpYi9wcml2YXRlL3N0YWNrLXRyYWNlLnRzXG4vLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6YmFuLXR5cGVzXG5leHBvcnQgZnVuY3Rpb24gY2FwdHVyZVN0YWNrVHJhY2UoYmVsb3c/OiBGdW5jdGlvbik6IHN0cmluZ1tdIHtcbiAgYmVsb3cgPSBiZWxvdyB8fCBjYXB0dXJlU3RhY2tUcmFjZTsgLy8gaGlkZSBteXNlbGYgaWYgbm90aGluZyBlbHNlXG4gIGNvbnN0IG9iamVjdCA9IHsgc3RhY2s6ICcnIH07XG4gIGNvbnN0IHByZXZpb3VzTGltaXQgPSBFcnJvci5zdGFja1RyYWNlTGltaXQ7XG4gIHRyeSB7XG4gICAgRXJyb3Iuc3RhY2tUcmFjZUxpbWl0ID0gTnVtYmVyLk1BWF9TQUZFX0lOVEVHRVI7XG4gICAgRXJyb3IuY2FwdHVyZVN0YWNrVHJhY2Uob2JqZWN0LCBiZWxvdyk7XG4gIH0gZmluYWxseSB7XG4gICAgRXJyb3Iuc3RhY2tUcmFjZUxpbWl0ID0gcHJldmlvdXNMaW1pdDtcbiAgfVxuICBpZiAoIW9iamVjdC5zdGFjaykge1xuICAgIHJldHVybiBbXTtcbiAgfVxuICByZXR1cm4gb2JqZWN0LnN0YWNrLnNwbGl0KCdcXG4nKS5zbGljZSgxKS5tYXAocyA9PiBzLnJlcGxhY2UoL15cXHMqYXRcXHMrLywgJycpKTtcbn1cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TokenMap = void 0; | ||
const token_1 = require("../token"); | ||
@@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tFTmApLnJlcGxhY2UobmV3IFJlZ0V4cChgW14ke1ZBTElEX0tFWV9DSEFSU31dYCwgJ2cnKSwgJy4nKTtcbiAgICBjb25zdCBrZXkgPSBgJHtyZXByZXNlbnRhdGlvbn0uJHtjb3VudGVyfWA7XG4gICAgdGhpcy5zdHJpbmdUb2tlbk1hcC5zZXQoa2V5LCB0b2tlbik7XG4gICAgcmV0dXJuIGtleTtcbiAgfVxuXG4gIHByaXZhdGUgcmVnaXN0ZXJOdW1iZXJLZXkodG9rZW46IElSZXNvbHZhYmxlKTogbnVtYmVyIHtcbiAgICBjb25zdCBjb3VudGVyID0gdGhpcy50b2tlbkNvdW50ZXIrKztcbiAgICB0aGlzLm51bWJlclRva2VuTWFwLnNldChjb3VudGVyLCB0b2tlbik7XG4gICAgcmV0dXJuIGNyZWF0ZVRva2VuRG91YmxlKGNvdW50ZXIpO1xuICB9XG59XG5cbi8qKlxuICogR2V0IGEgY2FjaGVkIHZhbHVlIGZvciBhbiBvYmplY3QsIHN0b3JpbmcgaXQgb24gdGhlIG9iamVjdCBpbiBhIHN5bWJvbFxuICovXG5mdW5jdGlvbiBjYWNoZWRWYWx1ZTxBIGV4dGVuZHMgb2JqZWN0LCBCPih4OiBBLCBzeW06IHN5bWJvbCwgcHJvZDogKCkgPT4gQikge1xuICBsZXQgY2FjaGVkID0gKHggYXMgYW55KVtzeW0gYXMgYW55XTtcbiAgaWYgKGNhY2hlZCA9PT0gdW5kZWZpbmVkKSB7XG4gICAgY2FjaGVkID0gcHJvZCgpO1xuICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eSh4LCBzeW0sIHsgdmFsdWU6IGNhY2hlZCB9KTtcbiAgfVxuICByZXR1cm4gY2FjaGVkO1xufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeUniqueId = void 0; | ||
// copied from https://github.com/aws/constructs/blob/e01e47f78ef1e9b600efcd23ff7705aa8d384017/lib/private/uniqueid.ts | ||
@@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4oKTtcblxuICBmb3IgKGNvbnN0IGNvbXBvbmVudCBvZiBwYXRoKSB7XG4gICAgaWYgKHJldC5sZW5ndGggPT09IDAgfHwgIXJldFtyZXQubGVuZ3RoIC0gMV0uZW5kc1dpdGgoY29tcG9uZW50KSkge1xuICAgICAgcmV0LnB1c2goY29tcG9uZW50KTtcbiAgICB9XG4gIH1cblxuICByZXR1cm4gcmV0O1xufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DefaultTokenResolver = exports.StringConcat = void 0; | ||
const encoding_1 = require("./private/encoding"); | ||
@@ -75,2 +76,2 @@ const token_map_1 = require("./private/token-map"); | ||
exports.DefaultTokenResolver = DefaultTokenResolver; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2YWJsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInJlc29sdmFibGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQSxpREFBaUQ7QUFDakQsbURBQStDO0FBcUcvQzs7OztHQUlHO0FBQ0gsTUFBYSxZQUFZO0lBQ2hCLElBQUksQ0FBQyxJQUFxQixFQUFFLEtBQXNCO1FBQ3ZELElBQUksSUFBSSxLQUFLLFNBQVMsRUFBRTtZQUFFLE9BQU8sS0FBSyxLQUFLLFNBQVMsQ0FBQyxDQUFDLENBQUMsR0FBRyxLQUFLLEVBQUUsQ0FBQyxDQUFDLENBQUMsU0FBUyxDQUFDO1NBQUU7UUFDaEYsSUFBSSxLQUFLLEtBQUssU0FBUyxFQUFFO1lBQUUsT0FBTyxHQUFHLElBQUksRUFBRSxDQUFDO1NBQUU7UUFDOUMsT0FBTyxHQUFHLElBQUksR0FBRyxLQUFLLEVBQUUsQ0FBQztJQUMzQixDQUFDO0NBQ0Y7QUFORCxvQ0FNQztBQUVEOzs7O0dBSUc7QUFDSCxNQUFhLG9CQUFvQjtJQUMvQixZQUE2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hIHNpbmdsZXRvbiBsaXN0IHRva2VuLCBiZWNhdXNlIGNvbmNhdGVuYXRpb24gaXMgbm90IGFsbG93ZWQuXG4gICAgaWYgKHhzLmxlbmd0aCAhPT0gMSkge1xuICAgICAgdGhyb3cgbmV3IEVycm9yKGBDYW5ub3QgYWRkIGVsZW1lbnRzIHRvIGxpc3QgdG9rZW4sIGdvdDogJHt4c31gKTtcbiAgICB9XG5cbiAgICBjb25zdCBzdHIgPSBUb2tlblN0cmluZy5mb3JMaXN0VG9rZW4oeHNbMF0pO1xuICAgIGNvbnN0IHRva2VuTWFwID0gVG9rZW5NYXAuaW5zdGFuY2UoKTtcbiAgICBjb25zdCBmcmFnbWVudHMgPSBzdHIuc3BsaXQodG9rZW5NYXAubG9va3VwVG9rZW4uYmluZCh0b2tlbk1hcCkpO1xuICAgIGlmIChmcmFnbWVudHMubGVuZ3RoICE9PSAxKSB7XG4gICAgICB0aHJvdyBuZXcgRXJyb3IoYENhbm5vdCBjb25jYXRlbmF0ZSBzdHJpbmdzIGluIGEgdG9rZW5pemVkIHN0cmluZyBhcnJheSwgZ290OiAke3hzWzBdfWApO1xuICAgIH1cblxuICAgIHJldHVybiBmcmFnbWVudHMubWFwVG9rZW5zKHsgbWFwVG9rZW46IGNvbnRleHQucmVzb2x2ZSB9KS5maXJzdFZhbHVlO1xuICB9XG59XG4iXX0= |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TokenizedStringFragments = void 0; | ||
const token_1 = require("./token"); | ||
@@ -127,2 +128,2 @@ /** | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RyaW5nLWZyYWdtZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInN0cmluZy1mcmFnbWVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFHQSxtQ0FBdUM7QUFZdkM7OztHQUdHO0FBQ0gsTUFBYSx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QgY2FuIGJlIGV4cG9ydGVkIHZpYSBqc2lpLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIElUb2tlbk1hcHBlciB7XG4gIC8qKlxuICAgKiBSZXBsYWNlIGEgc2luZ2xlIHRva2VuXG4gICAqL1xuICBtYXBUb2tlbih0OiBJUmVzb2x2YWJsZSk6IGFueTtcbn1cblxuLyoqXG4gKiBSZXNvbHZlIHRoZSB2YWx1ZSBmcm9tIGEgc2luZ2xlIGZyYWdtZW50XG4gKlxuICogSWYgdGhlIGZyYWdtZW50IGlzIGEgVG9rZW4sIHJldHVybiB0aGUgc3RyaW5nIGVuY29kaW5nIG9mIHRoZSBUb2tlbi5cbiAqL1xuZnVuY3Rpb24gZnJhZ21lbnRWYWx1ZShmcmFnbWVudDogRnJhZ21lbnQpOiBhbnkge1xuICBzd2l0Y2ggKGZyYWdtZW50LnR5cGUpIHtcbiAgICBjYXNlICdsaXRlcmFsJzogcmV0dXJuIGZyYWdtZW50LmxpdDtcbiAgICBjYXNlICd0b2tlbic6IHJldHVybiBmcmFnbWVudC50b2tlbi50b1N0cmluZygpO1xuICAgIGNhc2UgJ2ludHJpbnNpYyc6IHJldHVybiBmcmFnbWVudC52YWx1ZTtcbiAgfVxufVxuIl19 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Tokenization = exports.Token = void 0; | ||
const lazy_1 = require("./lazy"); | ||
@@ -142,2 +143,2 @@ const encoding_1 = require("./private/encoding"); | ||
exports.Tokenization = Tokenization; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUVBLGlDQUE4QjtBQUM5QixpREFBZ0Q7QUFDaEQsbURBQWdEO0FBQ2hELCtDQUE0QztBQUM1QyxtREFBK0M7QUFJL0M7Ozs7Ozs7OztHQ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gcmVzb2x1dGlvbiBpcyBiZWluZyBleGVjdXRlZCBkdXJpbmcgdGhlIHByZXBhcmUgcGhhc2Ugb3Igbm90LlxuICAgKiBAZGVmYXVsdCBmYWxzZVxuICAgKi9cbiAgcmVhZG9ubHkgcHJlcGFyaW5nPzogYm9vbGVhbjtcbn1cblxuLyoqXG4gKiBQcm9wZXJ0aWVzIHRvIHN0cmluZyBlbmNvZGluZ3NcbiAqL1xuZXhwb3J0IGludGVyZmFjZSBFbmNvZGluZ09wdGlvbnMge1xuICAvKipcbiAgICogQSBoaW50IGZvciB0aGUgVG9rZW4ncyBwdXJwb3NlIHdoZW4gc3RyaW5naWZ5aW5nIGl0XG4gICAqIEBkZWZhdWx0IC0gbm8gZGlzcGxheSBoaW50XG4gICAqL1xuICByZWFkb25seSBkaXNwbGF5SGludD86IHN0cmluZztcbn1cbiJdfQ== |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.keysToSnakeCase = exports.snakeCase = exports.deepMerge = void 0; | ||
/** | ||
@@ -80,2 +81,2 @@ * Merges `source` into `target`, overriding any existing values. | ||
exports.keysToSnakeCase = keysToSnakeCase; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXRpbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQTs7O0dBR0c7QUFDSCxTQUFnQixTQUFTLENBQUMsTUFBVyxFQUFFLEdBQUcsT0FBYztJQUN0RCxLQUFLLE1BQU0sTUFBTSxJQUFJLE9BQU8sRUFBRTtRQUM1QixJQUFJLE9BQU0sQ0FBQyxNQUFNLENBQUMsS0FBSyxRQUFRLElBQUksT0FBTSxDQUFDLE1BQU0sQ0FBQyxLQUFLLFFBQVEsRUFBRTtZQUM5RCxNQUFNLElBQUksS0FBSyxDQUFDLCtCQUErQixJQUFJLENBQUMsU0FBUyxDQUF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ICcnKVxuICAgIC5yZXBsYWNlKC8oW2EtejAtOV0pKFtBLVpdKS9nLCAoX20sIGEsIGIpID0+IGEgKyAnXycgKyBiLnRvTG93ZXJDYXNlKCkpXG4gICAgLnJlcGxhY2UoL1teQS1aYS16MC05XSt8XysvZywgJ18nKVxuICAgIC50b0xvd2VyQ2FzZSgpO1xufVxuXG5leHBvcnQgZnVuY3Rpb24ga2V5c1RvU25ha2VDYXNlKG9iamVjdDogYW55KTogYW55IHtcbiAgaWYgKEFycmF5LmlzQXJyYXkob2JqZWN0KSkge1xuICAgIHJldHVybiBvYmplY3QubWFwKChlOiBhbnkpID0+IHtcbiAgICAgIHJldHVybiB0eXBlb2YoZSkgPT09ICdvYmplY3QnID8ga2V5c1RvU25ha2VDYXNlKGUpIDogZVxuICAgIH0pO1xuICB9XG4gIGNvbnN0IGtleXMgPSBPYmplY3Qua2V5cyhvYmplY3QpO1xuICByZXR1cm4ga2V5cy5yZWR1Y2UoKG5ld09iamVjdDogYW55LCBrZXk6IHN0cmluZykgPT4ge1xuICAgIGxldCB2YWx1ZSA9IG9iamVjdFtrZXldO1xuICAgIGlmICh0eXBlb2YodmFsdWUpID09PSAnb2JqZWN0Jykge1xuICAgICAgdmFsdWUgPSBrZXlzVG9TbmFrZUNhc2UodmFsdWUpXG4gICAgfVxuICAgIGlmIChBcnJheS5pc0FycmF5KHZhbHVlKSkge1xuICAgICAgdmFsdWUgPSB2YWx1ZS5tYXAoKGU6IGFueSkgPT4ge1xuICAgICAgICByZXR1cm4gdHlwZW9mKGUpID09PSAnb2JqZWN0JyA/IGtleXNUb1NuYWtlQ2FzZShlKSA6IGVcbiAgICAgIH0pO1xuICAgIH1cbiAgICBuZXdPYmplY3Rbc25ha2VDYXNlKGtleSldID0gdmFsdWVcbiAgICByZXR1cm4gbmV3T2JqZWN0XG4gIH0sIHt9KTtcbn1cbiJdfQ== |
{ | ||
"name": "cdktf", | ||
"version": "0.0.6", | ||
"version": "0.0.7-pre.20d2c53ad5a5cd589328c7a4fcc437e543fe4317", | ||
"description": "Cloud Development Kit for Terraform", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
433642
81
3801