From 0d224a06cac4243119abf5921e9dea49903dbfb8 Mon Sep 17 00:00:00 2001 From: Jon Steinich Date: Sat, 14 Nov 2020 20:25:32 +0000 Subject: [PATCH] remap 'equals' to 'equalTo' --- packages/cdktf-cli/lib/get/generator/models/attribute-model.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/cdktf-cli/lib/get/generator/models/attribute-model.ts b/packages/cdktf-cli/lib/get/generator/models/attribute-model.ts index a792692c5b..7fc005a425 100644 --- a/packages/cdktf-cli/lib/get/generator/models/attribute-model.ts +++ b/packages/cdktf-cli/lib/get/generator/models/attribute-model.ts @@ -69,6 +69,8 @@ export class AttributeModel { if (this._name === 'self' || this._name === 'build') return `${this._name}Attribute`; // jsii can't handle `getFoo` properties, since it's incompatible with Java if (this._name.match(/^get[A-Z]+/)) return this._name.replace('get', 'fetch'); + // `equals` is a prohibited name in jsii + if (this._name === 'equals') return 'equalTo'; return this._name }