cdktf-cli
Advanced tools
Comparing version 0.0.12-pre.10ca7860c0f18c50297894d392ae1224c2334f00 to 0.0.12-pre.1835daa2c7b01af454bcbc1830996a04a5e72fe9
@@ -12,2 +12,3 @@ import { CodeMaker } from 'codemaker'; | ||
private emitComputedComplexList; | ||
private emitComputedComplexListMap; | ||
private emitComputedComplexOptional; | ||
@@ -14,0 +15,0 @@ private emitComputedComplexMap; |
@@ -12,2 +12,3 @@ "use strict"; | ||
switch (true) { | ||
case (att.computed && !att.isOptional && att.type.isComputedComplex && att.type.isList && att.type.isMap): return this.emitComputedComplexListMap(att); | ||
case (att.computed && !att.isOptional && att.type.isComputedComplex && att.type.isList): return this.emitComputedComplexList(att); | ||
@@ -60,2 +61,7 @@ case (att.computed && att.isOptional && att.type.isComputedComplex && att.type.isList): return this.emitComputedComplexOptional(att); | ||
} | ||
emitComputedComplexListMap(att) { | ||
this.code.openBlock(`public ${att.name}(index: string, key: string): ${this.determineMapType(att)}`); | ||
this.code.line(`return new ${att.type.name}(this, \`${att.terraformName}.\${index}\`).lookup(key);`); | ||
this.code.closeBlock(); | ||
} | ||
emitComputedComplexOptional(att) { | ||
@@ -112,2 +118,2 @@ this.code.line(`private ${att.storageName}?: ${att.type.name}`); | ||
exports.AttributesEmitter = AttributesEmitter; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXR0cmlidXRlcy1lbWl0dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiYXR0cmlidXRlcy1lbWl0dGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUdBLE1BQWEsaUJBQWlCO0lBQzVCLFlBQW9CLElBQWU7UUFBZixTQUFJLEdBQUosSUFBSSxDQUFXO0lBQUcsQ0FBQztJQUVoQyxJQUFJLENBQUMsR0FBbUI7UUFDN0IsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztRQUNqQixJQUFJL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uIGAnbm90IGltcGxlbWVudGVkJyBhcyBhbnlgXG4gIH1cblxuICBwdWJsaWMgZGV0ZXJtaW5lTWFwVHlwZShhdHQ6IEF0dHJpYnV0ZU1vZGVsKTogc3RyaW5nIHtcbiAgICBjb25zdCB0eXBlID0gYXR0LnR5cGVcbiAgICBpZiAodHlwZS5pc1N0cmluZ01hcCkgeyByZXR1cm4gYHN0cmluZ2AgfVxuICAgIGlmICh0eXBlLmlzTnVtYmVyTWFwKSB7IHJldHVybiBgbnVtYmVyYCB9XG4gICAgaWYgKHR5cGUuaXNCb29sZWFuTWFwKSB7IHJldHVybiBgYm9vbGVhbmAgfVxuICAgIGlmIChwcm9jZXNzLmVudi5ERUJVRykge1xuICAgICAgY29uc29sZS5lcnJvcihgVGhlIGF0dHJpYnV0ZSAke0pTT04uc3RyaW5naWZ5KGF0dCl9IGlzbid0IGltcGxlbWVudGVkIHlldGApXG4gICAgfVxuICAgIHJldHVybiBgYW55YFxuICB9XG59XG4iXX0= |
{ | ||
"name": "cdktf-cli", | ||
"version": "0.0.12-pre.10ca7860c0f18c50297894d392ae1224c2334f00", | ||
"version": "0.0.12-pre.1835daa2c7b01af454bcbc1830996a04a5e72fe9", | ||
"description": "CDK for Terraform CLI", | ||
@@ -29,3 +29,3 @@ "bin": { | ||
"@types/readline-sync": "^1.4.3", | ||
"cdktf": "0.0.12-pre.10ca7860c0f18c50297894d392ae1224c2334f00", | ||
"cdktf": "0.0.12-pre.1835daa2c7b01af454bcbc1830996a04a5e72fe9", | ||
"chalk": "^4.1.0", | ||
@@ -32,0 +32,0 @@ "codemaker": "^0.22.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
791629
7870
+ Addedcdktf@0.0.12-pre.1835daa2c7b01af454bcbc1830996a04a5e72fe9(transitive)
- Removedcdktf@0.0.12-pre.10ca7860c0f18c50297894d392ae1224c2334f00(transitive)
Updatedcdktf@0.0.12-pre.1835daa2c7b01af454bcbc1830996a04a5e72fe9