From 0271e066b0724f4a1335e6c3f7e2631673664f75 Mon Sep 17 00:00:00 2001 From: George Fu Date: Mon, 15 Sep 2025 15:13:57 -0400 Subject: [PATCH 1/5] feat(xml-builder): use DOMParser for browser XML parsing --- packages/core/package.json | 1 - .../protocols/xml/XmlShapeDeserializer.ts | 16 +- .../submodules/protocols/xml/parseXmlBody.ts | 16 +- packages/xml-builder/package.json | 8 + packages/xml-builder/src/index.ts | 5 + .../xml-builder/src/xml-parser.browser.ts | 69 ++++++++ packages/xml-builder/src/xml-parser.spec.ts | 153 ++++++++++++++++++ packages/xml-builder/src/xml-parser.ts | 17 ++ packages/xml-builder/vitest.config.mts | 2 +- yarn.lock | 2 +- 10 files changed, 258 insertions(+), 31 deletions(-) create mode 100644 packages/xml-builder/src/xml-parser.browser.ts create mode 100644 packages/xml-builder/src/xml-parser.spec.ts create mode 100644 packages/xml-builder/src/xml-parser.ts diff --git a/packages/core/package.json b/packages/core/package.json index b171c9e791c4..9a0738bcccaa 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -94,7 +94,6 @@ "@smithy/util-body-length-browser": "^4.1.0", "@smithy/util-middleware": "^4.1.1", "@smithy/util-utf8": "^4.1.0", - "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/packages/core/src/submodules/protocols/xml/XmlShapeDeserializer.ts b/packages/core/src/submodules/protocols/xml/XmlShapeDeserializer.ts index 9aea2a91ee69..212ab2da183b 100644 --- a/packages/core/src/submodules/protocols/xml/XmlShapeDeserializer.ts +++ b/packages/core/src/submodules/protocols/xml/XmlShapeDeserializer.ts @@ -1,9 +1,9 @@ +import { parseXML } from "@aws-sdk/xml-builder"; import { FromStringShapeDeserializer } from "@smithy/core/protocols"; import { NormalizedSchema } from "@smithy/core/schema"; import { getValueFromTextNode } from "@smithy/smithy-client"; import type { Schema, SerdeFunctions, ShapeDeserializer } from "@smithy/types"; import { toUtf8 } from "@smithy/util-utf8"; -import { XMLParser } from "fast-xml-parser"; import { SerdeContextConfig } from "../ConfigurableSerdeContext"; import type { XmlSettings } from "./XmlCodec"; @@ -146,21 +146,9 @@ export class XmlShapeDeserializer extends SerdeContextConfig implements ShapeDes protected parseXml(xml: string): any { if (xml.length) { - const parser = new XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - let parsedObj; try { - parsedObj = parser.parse(xml, true); + parsedObj = parseXML(xml); } catch (e: any) { if (e && typeof e === "object") { Object.defineProperty(e, "$responseBodyText", { diff --git a/packages/core/src/submodules/protocols/xml/parseXmlBody.ts b/packages/core/src/submodules/protocols/xml/parseXmlBody.ts index 2d5bac5999a0..85ef329c0cd7 100644 --- a/packages/core/src/submodules/protocols/xml/parseXmlBody.ts +++ b/packages/core/src/submodules/protocols/xml/parseXmlBody.ts @@ -1,6 +1,6 @@ +import { parseXML } from "@aws-sdk/xml-builder"; import { getValueFromTextNode } from "@smithy/smithy-client"; import type { HttpResponse, SerdeContext } from "@smithy/types"; -import { XMLParser } from "fast-xml-parser"; import { collectBodyString } from "../common"; @@ -10,21 +10,9 @@ import { collectBodyString } from "../common"; export const parseXmlBody = (streamBody: any, context: SerdeContext): any => collectBodyString(streamBody, context).then((encoded) => { if (encoded.length) { - const parser = new XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - let parsedObj; try { - parsedObj = parser.parse(encoded, true); + parsedObj = parseXML(encoded); } catch (e: any) { if (e && typeof e === "object") { Object.defineProperty(e, "$responseBodyText", { diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index 08eff7d6d293..d5d9832c261f 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -4,6 +4,7 @@ "description": "XML builder for the AWS SDK", "dependencies": { "@smithy/types": "^4.5.0", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "scripts": { @@ -39,6 +40,13 @@ "files": [ "dist-*/**" ], + "browser": { + "./dist-es/xml-parser": "./dist-es/xml-parser.browser" + }, + "react-native": { + "./dist-es/xml-parser": "./dist-es/xml-parser", + "./dist-cjs/xml-parser": "./dist-cjs/xml-parser" + }, "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/xml-builder", "repository": { "type": "git", diff --git a/packages/xml-builder/src/index.ts b/packages/xml-builder/src/index.ts index ed9933828403..dc7fd5f908f4 100644 --- a/packages/xml-builder/src/index.ts +++ b/packages/xml-builder/src/index.ts @@ -6,3 +6,8 @@ export * from "./XmlNode"; * @internal */ export * from "./XmlText"; + +/** + * @internal + */ +export { parseXML } from "./xml-parser"; diff --git a/packages/xml-builder/src/xml-parser.browser.ts b/packages/xml-builder/src/xml-parser.browser.ts new file mode 100644 index 000000000000..5a09d98663b7 --- /dev/null +++ b/packages/xml-builder/src/xml-parser.browser.ts @@ -0,0 +1,69 @@ +const parser = new DOMParser(); + +/** + * Cases where this differs from fast-xml-parser: + * + * 1. mixing text with nested tags + * hello, world, how are you? + * + * @internal + */ +export function parseXML(xmlString: string): any { + const xmlDocument = parser.parseFromString(xmlString, "application/xml"); + + // Recursive function to convert XML nodes to JS object + const xmlToObj = (node: Node): any => { + if (node.nodeType === Node.TEXT_NODE) { + if (node.textContent?.trim()) { + return node.textContent; + } + } + + if (node.nodeType === Node.ELEMENT_NODE) { + const element = node as Element; + if (element.attributes.length === 0 && element.childNodes.length === 0) { + return ""; + } + + const obj: any = {}; + + const attributes = Array.from(element.attributes); + for (const attr of attributes) { + obj[`${attr.name}`] = attr.value; + } + + const childNodes = Array.from(element.childNodes); + for (const child of childNodes) { + const childResult = xmlToObj(child); + + if (childResult != null) { + const childName = child.nodeName; + + if (childNodes.length === 1 && attributes.length === 0 && childName === "#text") { + return childResult; + } + + if (obj[childName]) { + if (Array.isArray(obj[childName])) { + obj[childName].push(childResult); + } else { + obj[childName] = [obj[childName], childResult]; + } + } else { + obj[childName] = childResult; + } + } else if (childNodes.length === 1 && attributes.length === 0) { + return element.textContent; + } + } + + return obj; + } + + return null; + }; + + return { + [xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement), + }; +} diff --git a/packages/xml-builder/src/xml-parser.spec.ts b/packages/xml-builder/src/xml-parser.spec.ts new file mode 100644 index 000000000000..11ba9de7dbdd --- /dev/null +++ b/packages/xml-builder/src/xml-parser.spec.ts @@ -0,0 +1,153 @@ +import { describe, expect, test as it } from "vitest"; + +import { parseXML } from "./xml-parser"; +import { parseXML as parseXMLBrowser } from "./xml-parser.browser"; + +describe("xml parsing", () => { + for (const { name, parse } of [ + { name: "fast-xml-parser", parse: parseXML }, + { name: "DOMParser", parse: parseXMLBrowser }, + ]) { + describe(name, () => { + it("should parse a valid xml string without xml header", () => { + const xml = ` + + + STS_AR_ACCESS_KEY_ID + STS_AR_SECRET_ACCESS_KEY + STS_AR_SESSION_TOKEN_us-west-2 + 3000-01-01T00:00:00.000Z + + + + 01234567-89ab-cdef-0123-456789abcdef + +`; + const object = parse(xml); + expect(object).toEqual({ + AssumeRoleResponse: { + AssumeRoleResult: { + Credentials: { + AccessKeyId: "STS_AR_ACCESS_KEY_ID", + Expiration: "3000-01-01T00:00:00.000Z", + SecretAccessKey: "STS_AR_SECRET_ACCESS_KEY", + SessionToken: "STS_AR_SESSION_TOKEN_us-west-2", + }, + }, + ResponseMetadata: { + RequestId: "01234567-89ab-cdef-0123-456789abcdef", + }, + xmlns: "https://sts.amazonaws.com/doc/2011-06-15/", + }, + }); + }); + + it("should parse ListBuckets response XML with xml header", () => { + const xml = ` + + + + string + string + timestamp + string + + + + string + string + + string + string +`; + const object = parse(xml); + expect(object).toEqual({ + ListAllMyBucketsResult: { + Buckets: { + Bucket: { + BucketArn: "string", + BucketRegion: "string", + CreationDate: "timestamp", + Name: "string", + }, + }, + ContinuationToken: "string", + Owner: { + DisplayName: "string", + ID: "string", + }, + Prefix: "string", + }, + }); + }); + + it("should parse xml (custom)", () => { + const xml = ` + + + abcdefg + dup1 + dup2 + dup3 + s p a c e d + + + abcdefg + dup1 + dup2 + dup3 + s p a c e d + +`; + const object = parse(xml); + expect(object).toEqual({ + struct: { + empty: "", + text: "abcdefg", + duplicate: ["dup1", "dup2", "dup3"], + spaced: " s p a c e d ", + nested: { + empty: "", + text: "abcdefg", + duplicate: ["dup1", "dup2", "dup3"], + spaced: " s p a c e d ", + }, + }, + }); + }); + }); + } + + const xmlSamples = [ + ` + + dup1 + dup2 + + s p a c e d + !@#$%^*() + 1000000000000000000000000000000000000000000000000 + + + dup1 + dup2 + + + + `, + ` + `, + ` `, + `dup1dup2 s p a c e d !@#$%^*()1000000000000000000000000000000000000000000000000dup1dup2`, + `z`, + ` `, + ` `, + ]; + let i = 0; + + for (const xml of xmlSamples) { + it(`should behave identically to fast-xml-parser as far as the SDK is concerned, case ${++i}`, () => { + expect(parseXMLBrowser(xml)).toEqual(parseXML(xml)); + }); + } +}); diff --git a/packages/xml-builder/src/xml-parser.ts b/packages/xml-builder/src/xml-parser.ts new file mode 100644 index 000000000000..5e2aba24a2af --- /dev/null +++ b/packages/xml-builder/src/xml-parser.ts @@ -0,0 +1,17 @@ +import { XMLParser } from "fast-xml-parser"; + +const parser = new XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), +}); +parser.addEntity("#xD", "\r"); +parser.addEntity("#10", "\n"); + +export function parseXML(xmlString: string): any { + return parser.parse(xmlString, true); +} diff --git a/packages/xml-builder/vitest.config.mts b/packages/xml-builder/vitest.config.mts index 4e46707824a5..73fcc11c3178 100644 --- a/packages/xml-builder/vitest.config.mts +++ b/packages/xml-builder/vitest.config.mts @@ -4,6 +4,6 @@ export default defineConfig({ test: { exclude: ["**/*.{integ,e2e,browser}.spec.ts"], include: ["**/*.spec.ts"], - environment: "node", + environment: "happy-dom", }, }); diff --git a/yarn.lock b/yarn.lock index 18f77fa883a9..96ddcb1b367c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -23538,7 +23538,6 @@ __metadata: "@tsconfig/recommended": "npm:1.0.1" concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" - fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -25010,6 +25009,7 @@ __metadata: "@tsconfig/recommended": "npm:1.0.1" concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" + fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" From eff19fe4a6663d11a50b1bbd7b08e63d1be4f15f Mon Sep 17 00:00:00 2001 From: George Fu Date: Tue, 16 Sep 2025 15:36:42 -0400 Subject: [PATCH 2/5] test(xml-builder): move tests to browser group --- vitest.config.browser.mts | 1 + vitest.config.mts | 1 + 2 files changed, 2 insertions(+) diff --git a/vitest.config.browser.mts b/vitest.config.browser.mts index c6f252940fcf..e1c75a87c35e 100644 --- a/vitest.config.browser.mts +++ b/vitest.config.browser.mts @@ -12,6 +12,7 @@ export default defineConfig({ "packages/middleware-websocket/src/EventStreamPayloadHandler.spec.ts", "packages/credential-provider-cognito-identity/src/localStorage.spec.ts", "packages/signature-v4-multi-region/src/SignatureV4MultiRegion.browser.spec.ts", + "packages/xml-builder/src/xml-parser.spec.ts", ], environment: "happy-dom", }, diff --git a/vitest.config.mts b/vitest.config.mts index 659e4b54ced3..51153de1e5c2 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -34,6 +34,7 @@ export default defineConfig({ "packages/middleware-websocket/src/get-event-signing-stream.spec.ts", "packages/middleware-websocket/src/EventStreamPayloadHandler.spec.ts", "packages/credential-provider-cognito-identity/src/localStorage.spec.ts", + "packages/xml-builder/src/xml-parser.spec.ts", ], include: ["lib/**/*.spec.ts", "packages/**/*.spec.ts"], environment: "node", From 36d626985429dd03ca0bd4d29591c889608b726a Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 17 Sep 2025 11:51:07 -0400 Subject: [PATCH 3/5] test: verify DOMParser in Node.js --- package.json | 1 + packages/xml-builder/package.json | 2 +- packages/xml-builder/src/xml-parser.ts | 100 +++++++++++++++--- .../package.json | 1 - .../aws-protocoltests-restxml/package.json | 1 - yarn.lock | 37 +++---- 6 files changed, 104 insertions(+), 38 deletions(-) diff --git a/package.json b/package.json index 4d2bbed23c14..87b04e75a984 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "vitest": "^3.2.4", "webpack": "5.101.0", "webpack-cli": "4.10.0", + "xmldom": "^0.6.0", "yargs": "17.5.1" }, "overrides": { diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index d5d9832c261f..699f9a2da793 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -4,7 +4,7 @@ "description": "XML builder for the AWS SDK", "dependencies": { "@smithy/types": "^4.5.0", - "fast-xml-parser": "5.2.5", + "@xmldom/xmldom": "0.8.11", "tslib": "^2.6.2" }, "scripts": { diff --git a/packages/xml-builder/src/xml-parser.ts b/packages/xml-builder/src/xml-parser.ts index 5e2aba24a2af..6e5c7a62c7a1 100644 --- a/packages/xml-builder/src/xml-parser.ts +++ b/packages/xml-builder/src/xml-parser.ts @@ -1,17 +1,89 @@ -import { XMLParser } from "fast-xml-parser"; - -const parser = new XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), -}); -parser.addEntity("#xD", "\r"); -parser.addEntity("#10", "\n"); +// +// +// const parser = new XMLParser({ +// attributeNamePrefix: "", +// htmlEntities: true, +// ignoreAttributes: false, +// ignoreDeclaration: true, +// parseTagValue: false, +// trimValues: false, +// tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), +// }); +// parser.addEntity("#xD", "\r"); +// parser.addEntity("#10", "\n"); +// export function parseXML(xmlString: string): any { +// return parser.parse(xmlString, true); +// } + +// temporary replacement for compatibility testing. +import { DOMParser } from "@xmldom/xmldom"; +const parser = new DOMParser(); + +/** + * Cases where this differs from fast-xml-parser: + * + * 1. mixing text with nested tags + * hello, world, how are you? + * + * @internal + */ export function parseXML(xmlString: string): any { - return parser.parse(xmlString, true); + const xmlDocument = parser.parseFromString(xmlString, "application/xml"); + + // Recursive function to convert XML nodes to JS object + const xmlToObj = (node: Node): any => { + if (node.nodeType === 3) { + if (node.textContent?.trim()) { + return node.textContent; + } + } + + if (node.nodeType === 1) { + const element = node as Element; + if (element.attributes.length === 0 && element.childNodes.length === 0) { + return ""; + } + + const obj: any = {}; + + const attributes = Array.from(element.attributes); + for (const attr of attributes) { + obj[`${attr.name}`] = attr.value; + } + + const childNodes = Array.from(element.childNodes); + for (const child of childNodes) { + const childResult = xmlToObj(child); + + if (childResult != null) { + const childName = child.nodeName; + + if (childNodes.length === 1 && attributes.length === 0 && childName === "#text") { + return childResult; + } + + if (obj[childName]) { + if (Array.isArray(obj[childName])) { + obj[childName].push(childResult); + } else { + obj[childName] = [obj[childName], childResult]; + } + } else { + obj[childName] = childResult; + } + } else if (childNodes.length === 1 && attributes.length === 0) { + return element.textContent; + } + } + + return obj; + } + + return null; + }; + + return { + [xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement), + }; } diff --git a/private/aws-protocoltests-restxml-schema/package.json b/private/aws-protocoltests-restxml-schema/package.json index deffac69b681..4c5c21006fe0 100644 --- a/private/aws-protocoltests-restxml-schema/package.json +++ b/private/aws-protocoltests-restxml-schema/package.json @@ -60,7 +60,6 @@ "@smithy/util-stream": "^4.3.2", "@smithy/util-utf8": "^4.1.0", "entities": "2.2.0", - "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index f7b9f8c03e1b..5c5b48df52f4 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -62,7 +62,6 @@ "@smithy/util-utf8": "^4.1.0", "@types/uuid": "^9.0.1", "entities": "2.2.0", - "fast-xml-parser": "5.2.5", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/yarn.lock b/yarn.lock index 96ddcb1b367c..020a956a1b0e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1181,7 +1181,6 @@ __metadata: concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" entities: "npm:2.2.0" - fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -1241,7 +1240,6 @@ __metadata: concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" entities: "npm:2.2.0" - fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -25007,9 +25005,9 @@ __metadata: dependencies: "@smithy/types": "npm:^4.5.0" "@tsconfig/recommended": "npm:1.0.1" + "@xmldom/xmldom": "npm:0.8.11" concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" - fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -30538,6 +30536,13 @@ __metadata: languageName: node linkType: hard +"@xmldom/xmldom@npm:0.8.11": + version: 0.8.11 + resolution: "@xmldom/xmldom@npm:0.8.11" + checksum: 10c0/e768623de72c95d3dae6b5da8e33dda0d81665047811b5498d23a328d45b13feb5536fe921d0308b96a4a8dd8addf80b1f6ef466508051c0b581e63e0dc74ed5 + languageName: node + linkType: hard + "@xtuc/ieee754@npm:^1.2.0": version: 1.2.0 resolution: "@xtuc/ieee754@npm:1.2.0" @@ -31142,6 +31147,7 @@ __metadata: vitest: "npm:^3.2.4" webpack: "npm:5.101.0" webpack-cli: "npm:4.10.0" + xmldom: "npm:^0.6.0" yargs: "npm:17.5.1" languageName: unknown linkType: soft @@ -33979,17 +33985,6 @@ __metadata: languageName: node linkType: hard -"fast-xml-parser@npm:5.2.5": - version: 5.2.5 - resolution: "fast-xml-parser@npm:5.2.5" - dependencies: - strnum: "npm:^2.1.0" - bin: - fxparser: src/cli/cli.js - checksum: 10c0/d1057d2e790c327ccfc42b872b91786a4912a152d44f9507bf053f800102dfb07ece3da0a86b33ff6a0caa5a5cad86da3326744f6ae5efb0c6c571d754fe48cd - languageName: node - linkType: hard - "fastest-levenshtein@npm:^1.0.12": version: 1.0.16 resolution: "fastest-levenshtein@npm:1.0.16" @@ -40843,13 +40838,6 @@ __metadata: languageName: node linkType: hard -"strnum@npm:^2.1.0": - version: 2.1.1 - resolution: "strnum@npm:2.1.1" - checksum: 10c0/1f9bd1f9b4c68333f25c2b1f498ea529189f060cd50aa59f1876139c994d817056de3ce57c12c970f80568d75df2289725e218bd9e3cdf73cd1a876c9c102733 - languageName: node - linkType: hard - "strong-log-transformer@npm:^2.1.0": version: 2.1.0 resolution: "strong-log-transformer@npm:2.1.0" @@ -42539,6 +42527,13 @@ __metadata: languageName: node linkType: hard +"xmldom@npm:^0.6.0": + version: 0.6.0 + resolution: "xmldom@npm:0.6.0" + checksum: 10c0/93cbb4854f73f431a402e7942baa87a59e8445fd0b4ae6bf6af3a1007809e849da8ac70bbe1509242212bce5d19e30b55ea282cbd9d87281701d1bdc13b74623 + languageName: node + linkType: hard + "xtend@npm:^4.0.0, xtend@npm:^4.0.2, xtend@npm:~4.0.0, xtend@npm:~4.0.1": version: 4.0.2 resolution: "xtend@npm:4.0.2" From 689a1a6b2b763051cc27426d01e8387617fff761 Mon Sep 17 00:00:00 2001 From: George Fu Date: Wed, 17 Sep 2025 15:50:46 -0400 Subject: [PATCH 4/5] fix: update empty aggregate shape string check with trim --- .../src/protocols/Aws_query.ts | 134 +- .../src/protocols/Aws_query.ts | 166 +- .../src/protocols/Aws_restXml.ts | 150 +- .../src/protocols/Aws_query.ts | 16 +- .../src/protocols/Aws_query.ts | 104 +- .../client-docdb/src/protocols/Aws_query.ts | 84 +- clients/client-ec2/src/protocols/Aws_ec2.ts | 1416 ++++++++--------- .../src/protocols/Aws_query.ts | 82 +- .../src/protocols/Aws_query.ts | 116 +- .../src/protocols/Aws_query.ts | 56 +- .../src/protocols/Aws_query.ts | 130 +- clients/client-iam/src/protocols/Aws_query.ts | 180 +-- .../client-neptune/src/protocols/Aws_query.ts | 128 +- clients/client-rds/src/protocols/Aws_query.ts | 310 ++-- .../src/protocols/Aws_query.ts | 222 +-- .../src/protocols/Aws_restXml.ts | 62 +- .../src/protocols/Aws_restXml.ts | 126 +- .../client-s3/src/protocols/Aws_restXml.ts | 108 +- clients/client-ses/src/protocols/Aws_query.ts | 48 +- clients/client-sns/src/protocols/Aws_query.ts | 38 +- .../codegen/XmlShapeDeserVisitor.java | 2 +- .../protocols/xml/parseXmlBody.spec.ts | 6 +- .../src/middleware-sdk-route53.integ.spec.ts | 4 +- .../xml-builder/src/xml-parser.browser.ts | 4 + packages/xml-builder/src/xml-parser.spec.ts | 35 +- packages/xml-builder/src/xml-parser.ts | 11 +- .../src/protocols/Aws_ec2.ts | 42 +- .../src/protocols/Aws_query.ts | 52 +- .../package.json | 1 + .../aws-protocoltests-restxml/package.json | 1 + .../src/protocols/Aws_restXml.ts | 98 +- yarn.lock | 20 + 32 files changed, 2008 insertions(+), 1944 deletions(-) diff --git a/clients/client-auto-scaling/src/protocols/Aws_query.ts b/clients/client-auto-scaling/src/protocols/Aws_query.ts index 854a29d59073..1bd5e98882b0 100644 --- a/clients/client-auto-scaling/src/protocols/Aws_query.ts +++ b/clients/client-auto-scaling/src/protocols/Aws_query.ts @@ -6741,7 +6741,7 @@ const de_Activities = (output: any, context: __SerdeContext): Activity[] => { */ const de_ActivitiesType = (output: any, context: __SerdeContext): ActivitiesType => { const contents: any = {}; - if (output.Activities === "") { + if (String(output.Activities).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_me] != null) { contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); @@ -6870,7 +6870,7 @@ const de_Alarms = (output: any, context: __SerdeContext): Alarm[] => { */ const de_AlarmSpecification = (output: any, context: __SerdeContext): AlarmSpecification => { const contents: any = {}; - if (output.Alarms === "") { + if (String(output.Alarms).trim() === "") { contents[_Al] = []; } else if (output[_Al] != null && output[_Al][_me] != null) { contents[_Al] = de_AlarmList(__getArrayIfSingleItem(output[_Al][_me]), context); @@ -6962,17 +6962,17 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_DCe] != null) { contents[_DCe] = __strictParseInt32(output[_DCe]) as number; } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_me] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_me]), context); } - if (output.LoadBalancerNames === "") { + if (String(output.LoadBalancerNames).trim() === "") { contents[_LBN] = []; } else if (output[_LBN] != null && output[_LBN][_me] != null) { contents[_LBN] = de_LoadBalancerNames(__getArrayIfSingleItem(output[_LBN][_me]), context); } - if (output.TargetGroupARNs === "") { + if (String(output.TargetGroupARNs).trim() === "") { contents[_TGARN] = []; } else if (output[_TGARN] != null && output[_TGARN][_me] != null) { contents[_TGARN] = de_TargetGroupARNs(__getArrayIfSingleItem(output[_TGARN][_me]), context); @@ -6983,7 +6983,7 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_HCGP] != null) { contents[_HCGP] = __strictParseInt32(output[_HCGP]) as number; } - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_In] = []; } else if (output[_In] != null && output[_In][_me] != null) { contents[_In] = de_Instances(__getArrayIfSingleItem(output[_In][_me]), context); @@ -6991,7 +6991,7 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_CT] != null) { contents[_CT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CT])); } - if (output.SuspendedProcesses === "") { + if (String(output.SuspendedProcesses).trim() === "") { contents[_SPu] = []; } else if (output[_SPu] != null && output[_SPu][_me] != null) { contents[_SPu] = de_SuspendedProcesses(__getArrayIfSingleItem(output[_SPu][_me]), context); @@ -7002,7 +7002,7 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_VPCZI] != null) { contents[_VPCZI] = __expectString(output[_VPCZI]); } - if (output.EnabledMetrics === "") { + if (String(output.EnabledMetrics).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_EnabledMetrics(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -7010,12 +7010,12 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_Sta] != null) { contents[_Sta] = __expectString(output[_Sta]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_TagDescriptionList(__getArrayIfSingleItem(output[_T][_me]), context); } - if (output.TerminationPolicies === "") { + if (String(output.TerminationPolicies).trim() === "") { contents[_TP] = []; } else if (output[_TP] != null && output[_TP][_me] != null) { contents[_TP] = de_TerminationPolicies(__getArrayIfSingleItem(output[_TP][_me]), context); @@ -7047,7 +7047,7 @@ const de_AutoScalingGroup = (output: any, context: __SerdeContext): AutoScalingG if (output[_DIW] != null) { contents[_DIW] = __strictParseInt32(output[_DIW]) as number; } - if (output.TrafficSources === "") { + if (String(output.TrafficSources).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_me] != null) { contents[_TS] = de_TrafficSources(__getArrayIfSingleItem(output[_TS][_me]), context); @@ -7083,7 +7083,7 @@ const de_AutoScalingGroups = (output: any, context: __SerdeContext): AutoScaling */ const de_AutoScalingGroupsType = (output: any, context: __SerdeContext): AutoScalingGroupsType => { const contents: any = {}; - if (output.AutoScalingGroups === "") { + if (String(output.AutoScalingGroups).trim() === "") { contents[_ASG] = []; } else if (output[_ASG] != null && output[_ASG][_me] != null) { contents[_ASG] = de_AutoScalingGroups(__getArrayIfSingleItem(output[_ASG][_me]), context); @@ -7148,7 +7148,7 @@ const de_AutoScalingInstances = (output: any, context: __SerdeContext): AutoScal */ const de_AutoScalingInstancesType = (output: any, context: __SerdeContext): AutoScalingInstancesType => { const contents: any = {}; - if (output.AutoScalingInstances === "") { + if (String(output.AutoScalingInstances).trim() === "") { contents[_ASI] = []; } else if (output[_ASI] != null && output[_ASI][_me] != null) { contents[_ASI] = de_AutoScalingInstances(__getArrayIfSingleItem(output[_ASI][_me]), context); @@ -7245,7 +7245,7 @@ const de_BatchDeleteScheduledActionAnswer = ( context: __SerdeContext ): BatchDeleteScheduledActionAnswer => { const contents: any = {}; - if (output.FailedScheduledActions === "") { + if (String(output.FailedScheduledActions).trim() === "") { contents[_FSA] = []; } else if (output[_FSA] != null && output[_FSA][_me] != null) { contents[_FSA] = de_FailedScheduledUpdateGroupActionRequests(__getArrayIfSingleItem(output[_FSA][_me]), context); @@ -7261,7 +7261,7 @@ const de_BatchPutScheduledUpdateGroupActionAnswer = ( context: __SerdeContext ): BatchPutScheduledUpdateGroupActionAnswer => { const contents: any = {}; - if (output.FailedScheduledUpdateGroupActions === "") { + if (String(output.FailedScheduledUpdateGroupActions).trim() === "") { contents[_FSUGA] = []; } else if (output[_FSUGA] != null && output[_FSUGA][_me] != null) { contents[_FSUGA] = de_FailedScheduledUpdateGroupActionRequests( @@ -7319,12 +7319,12 @@ const de_CancelInstanceRefreshAnswer = (output: any, context: __SerdeContext): C */ const de_CapacityForecast = (output: any, context: __SerdeContext): CapacityForecast => { const contents: any = {}; - if (output.Timestamps === "") { + if (String(output.Timestamps).trim() === "") { contents[_Tim] = []; } else if (output[_Tim] != null && output[_Tim][_me] != null) { contents[_Tim] = de_PredictiveScalingForecastTimestamps(__getArrayIfSingleItem(output[_Tim][_me]), context); } - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_me] != null) { contents[_Va] = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output[_Va][_me]), context); @@ -7376,12 +7376,12 @@ const de_CapacityReservationSpecification = ( */ const de_CapacityReservationTarget = (output: any, context: __SerdeContext): CapacityReservationTarget => { const contents: any = {}; - if (output.CapacityReservationIds === "") { + if (String(output.CapacityReservationIds).trim() === "") { contents[_CRI] = []; } else if (output[_CRI] != null && output[_CRI][_me] != null) { contents[_CRI] = de_CapacityReservationIds(__getArrayIfSingleItem(output[_CRI][_me]), context); } - if (output.CapacityReservationResourceGroupArns === "") { + if (String(output.CapacityReservationResourceGroupArns).trim() === "") { contents[_CRRGA] = []; } else if (output[_CRRGA] != null && output[_CRRGA][_me] != null) { contents[_CRRGA] = de_CapacityReservationResourceGroupArns(__getArrayIfSingleItem(output[_CRRGA][_me]), context); @@ -7435,7 +7435,7 @@ const de_CpuManufacturers = (output: any, context: __SerdeContext): CpuManufactu */ const de_CpuPerformanceFactorRequest = (output: any, context: __SerdeContext): CpuPerformanceFactorRequest => { const contents: any = {}; - if (output.Reference === "") { + if (String(output.Reference).trim() === "") { contents[_R] = []; } else if (output[_Ref] != null && output[_Ref][_i] != null) { contents[_R] = de_PerformanceFactorReferenceSetRequest(__getArrayIfSingleItem(output[_Ref][_i]), context); @@ -7454,7 +7454,7 @@ const de_CustomizedMetricSpecification = (output: any, context: __SerdeContext): if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_me] != null) { contents[_D] = de_MetricDimensions(__getArrayIfSingleItem(output[_D][_me]), context); @@ -7468,7 +7468,7 @@ const de_CustomizedMetricSpecification = (output: any, context: __SerdeContext): if (output[_P] != null) { contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output.Metrics === "") { + if (String(output.Metrics).trim() === "") { contents[_Me] = []; } else if (output[_Me] != null && output[_Me][_me] != null) { contents[_Me] = de_TargetTrackingMetricDataQueries(__getArrayIfSingleItem(output[_Me][_me]), context); @@ -7517,7 +7517,7 @@ const de_DescribeAccountLimitsAnswer = (output: any, context: __SerdeContext): D */ const de_DescribeAdjustmentTypesAnswer = (output: any, context: __SerdeContext): DescribeAdjustmentTypesAnswer => { const contents: any = {}; - if (output.AdjustmentTypes === "") { + if (String(output.AdjustmentTypes).trim() === "") { contents[_ATdj] = []; } else if (output[_ATdj] != null && output[_ATdj][_me] != null) { contents[_ATdj] = de_AdjustmentTypes(__getArrayIfSingleItem(output[_ATdj][_me]), context); @@ -7533,7 +7533,7 @@ const de_DescribeAutoScalingNotificationTypesAnswer = ( context: __SerdeContext ): DescribeAutoScalingNotificationTypesAnswer => { const contents: any = {}; - if (output.AutoScalingNotificationTypes === "") { + if (String(output.AutoScalingNotificationTypes).trim() === "") { contents[_ASNT] = []; } else if (output[_ASNT] != null && output[_ASNT][_me] != null) { contents[_ASNT] = de_AutoScalingNotificationTypes(__getArrayIfSingleItem(output[_ASNT][_me]), context); @@ -7546,7 +7546,7 @@ const de_DescribeAutoScalingNotificationTypesAnswer = ( */ const de_DescribeInstanceRefreshesAnswer = (output: any, context: __SerdeContext): DescribeInstanceRefreshesAnswer => { const contents: any = {}; - if (output.InstanceRefreshes === "") { + if (String(output.InstanceRefreshes).trim() === "") { contents[_IRn] = []; } else if (output[_IRn] != null && output[_IRn][_me] != null) { contents[_IRn] = de_InstanceRefreshes(__getArrayIfSingleItem(output[_IRn][_me]), context); @@ -7562,7 +7562,7 @@ const de_DescribeInstanceRefreshesAnswer = (output: any, context: __SerdeContext */ const de_DescribeLifecycleHooksAnswer = (output: any, context: __SerdeContext): DescribeLifecycleHooksAnswer => { const contents: any = {}; - if (output.LifecycleHooks === "") { + if (String(output.LifecycleHooks).trim() === "") { contents[_LH] = []; } else if (output[_LH] != null && output[_LH][_me] != null) { contents[_LH] = de_LifecycleHooks(__getArrayIfSingleItem(output[_LH][_me]), context); @@ -7578,7 +7578,7 @@ const de_DescribeLifecycleHookTypesAnswer = ( context: __SerdeContext ): DescribeLifecycleHookTypesAnswer => { const contents: any = {}; - if (output.LifecycleHookTypes === "") { + if (String(output.LifecycleHookTypes).trim() === "") { contents[_LHT] = []; } else if (output[_LHT] != null && output[_LHT][_me] != null) { contents[_LHT] = de_AutoScalingNotificationTypes(__getArrayIfSingleItem(output[_LHT][_me]), context); @@ -7591,7 +7591,7 @@ const de_DescribeLifecycleHookTypesAnswer = ( */ const de_DescribeLoadBalancersResponse = (output: any, context: __SerdeContext): DescribeLoadBalancersResponse => { const contents: any = {}; - if (output.LoadBalancers === "") { + if (String(output.LoadBalancers).trim() === "") { contents[_LB] = []; } else if (output[_LB] != null && output[_LB][_me] != null) { contents[_LB] = de_LoadBalancerStates(__getArrayIfSingleItem(output[_LB][_me]), context); @@ -7610,7 +7610,7 @@ const de_DescribeLoadBalancerTargetGroupsResponse = ( context: __SerdeContext ): DescribeLoadBalancerTargetGroupsResponse => { const contents: any = {}; - if (output.LoadBalancerTargetGroups === "") { + if (String(output.LoadBalancerTargetGroups).trim() === "") { contents[_LBTG] = []; } else if (output[_LBTG] != null && output[_LBTG][_me] != null) { contents[_LBTG] = de_LoadBalancerTargetGroupStates(__getArrayIfSingleItem(output[_LBTG][_me]), context); @@ -7629,12 +7629,12 @@ const de_DescribeMetricCollectionTypesAnswer = ( context: __SerdeContext ): DescribeMetricCollectionTypesAnswer => { const contents: any = {}; - if (output.Metrics === "") { + if (String(output.Metrics).trim() === "") { contents[_Me] = []; } else if (output[_Me] != null && output[_Me][_me] != null) { contents[_Me] = de_MetricCollectionTypes(__getArrayIfSingleItem(output[_Me][_me]), context); } - if (output.Granularities === "") { + if (String(output.Granularities).trim() === "") { contents[_Gr] = []; } else if (output[_Gr] != null && output[_Gr][_me] != null) { contents[_Gr] = de_MetricGranularityTypes(__getArrayIfSingleItem(output[_Gr][_me]), context); @@ -7650,7 +7650,7 @@ const de_DescribeNotificationConfigurationsAnswer = ( context: __SerdeContext ): DescribeNotificationConfigurationsAnswer => { const contents: any = {}; - if (output.NotificationConfigurations === "") { + if (String(output.NotificationConfigurations).trim() === "") { contents[_NC] = []; } else if (output[_NC] != null && output[_NC][_me] != null) { contents[_NC] = de_NotificationConfigurations(__getArrayIfSingleItem(output[_NC][_me]), context); @@ -7669,7 +7669,7 @@ const de_DescribeTerminationPolicyTypesAnswer = ( context: __SerdeContext ): DescribeTerminationPolicyTypesAnswer => { const contents: any = {}; - if (output.TerminationPolicyTypes === "") { + if (String(output.TerminationPolicyTypes).trim() === "") { contents[_TPT] = []; } else if (output[_TPT] != null && output[_TPT][_me] != null) { contents[_TPT] = de_TerminationPolicies(__getArrayIfSingleItem(output[_TPT][_me]), context); @@ -7682,7 +7682,7 @@ const de_DescribeTerminationPolicyTypesAnswer = ( */ const de_DescribeTrafficSourcesResponse = (output: any, context: __SerdeContext): DescribeTrafficSourcesResponse => { const contents: any = {}; - if (output.TrafficSources === "") { + if (String(output.TrafficSources).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_me] != null) { contents[_TS] = de_TrafficSourceStates(__getArrayIfSingleItem(output[_TS][_me]), context); @@ -7701,7 +7701,7 @@ const de_DescribeWarmPoolAnswer = (output: any, context: __SerdeContext): Descri if (output[_WPC] != null) { contents[_WPC] = de_WarmPoolConfiguration(output[_WPC], context); } - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_In] = []; } else if (output[_In] != null && output[_In][_me] != null) { contents[_In] = de_Instances(__getArrayIfSingleItem(output[_In][_me]), context); @@ -7731,7 +7731,7 @@ const de_DesiredConfiguration = (output: any, context: __SerdeContext): DesiredC */ const de_DetachInstancesAnswer = (output: any, context: __SerdeContext): DetachInstancesAnswer => { const contents: any = {}; - if (output.Activities === "") { + if (String(output.Activities).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_me] != null) { contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); @@ -7825,7 +7825,7 @@ const de_EnabledMetrics = (output: any, context: __SerdeContext): EnabledMetric[ */ const de_EnterStandbyAnswer = (output: any, context: __SerdeContext): EnterStandbyAnswer => { const contents: any = {}; - if (output.Activities === "") { + if (String(output.Activities).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_me] != null) { contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); @@ -7849,7 +7849,7 @@ const de_ExcludedInstanceTypes = (output: any, context: __SerdeContext): string[ */ const de_ExitStandbyAnswer = (output: any, context: __SerdeContext): ExitStandbyAnswer => { const contents: any = {}; - if (output.Activities === "") { + if (String(output.Activities).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_me] != null) { contents[_Ac] = de_Activities(__getArrayIfSingleItem(output[_Ac][_me]), context); @@ -7899,7 +7899,7 @@ const de_GetPredictiveScalingForecastAnswer = ( context: __SerdeContext ): GetPredictiveScalingForecastAnswer => { const contents: any = {}; - if (output.LoadForecast === "") { + if (String(output.LoadForecast).trim() === "") { contents[_LF] = []; } else if (output[_LF] != null && output[_LF][_me] != null) { contents[_LF] = de_LoadForecasts(__getArrayIfSingleItem(output[_LF][_me]), context); @@ -8120,7 +8120,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_MMB] != null) { contents[_MMB] = de_MemoryMiBRequest(output[_MMB], context); } - if (output.CpuManufacturers === "") { + if (String(output.CpuManufacturers).trim() === "") { contents[_CM] = []; } else if (output[_CM] != null && output[_CM][_me] != null) { contents[_CM] = de_CpuManufacturers(__getArrayIfSingleItem(output[_CM][_me]), context); @@ -8128,12 +8128,12 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_MGBPVC] != null) { contents[_MGBPVC] = de_MemoryGiBPerVCpuRequest(output[_MGBPVC], context); } - if (output.ExcludedInstanceTypes === "") { + if (String(output.ExcludedInstanceTypes).trim() === "") { contents[_EIT] = []; } else if (output[_EIT] != null && output[_EIT][_me] != null) { contents[_EIT] = de_ExcludedInstanceTypes(__getArrayIfSingleItem(output[_EIT][_me]), context); } - if (output.InstanceGenerations === "") { + if (String(output.InstanceGenerations).trim() === "") { contents[_IG] = []; } else if (output[_IG] != null && output[_IG][_me] != null) { contents[_IG] = de_InstanceGenerations(__getArrayIfSingleItem(output[_IG][_me]), context); @@ -8162,7 +8162,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_LS] != null) { contents[_LS] = __expectString(output[_LS]); } - if (output.LocalStorageTypes === "") { + if (String(output.LocalStorageTypes).trim() === "") { contents[_LST] = []; } else if (output[_LST] != null && output[_LST][_me] != null) { contents[_LST] = de_LocalStorageTypes(__getArrayIfSingleItem(output[_LST][_me]), context); @@ -8173,7 +8173,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_BEBM] != null) { contents[_BEBM] = de_BaselineEbsBandwidthMbpsRequest(output[_BEBM], context); } - if (output.AcceleratorTypes === "") { + if (String(output.AcceleratorTypes).trim() === "") { contents[_AT] = []; } else if (output[_AT] != null && output[_AT][_me] != null) { contents[_AT] = de_AcceleratorTypes(__getArrayIfSingleItem(output[_AT][_me]), context); @@ -8181,12 +8181,12 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_AC] != null) { contents[_AC] = de_AcceleratorCountRequest(output[_AC], context); } - if (output.AcceleratorManufacturers === "") { + if (String(output.AcceleratorManufacturers).trim() === "") { contents[_AM] = []; } else if (output[_AM] != null && output[_AM][_me] != null) { contents[_AM] = de_AcceleratorManufacturers(__getArrayIfSingleItem(output[_AM][_me]), context); } - if (output.AcceleratorNames === "") { + if (String(output.AcceleratorNames).trim() === "") { contents[_AN] = []; } else if (output[_AN] != null && output[_AN][_me] != null) { contents[_AN] = de_AcceleratorNames(__getArrayIfSingleItem(output[_AN][_me]), context); @@ -8197,7 +8197,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_NBG] != null) { contents[_NBG] = de_NetworkBandwidthGbpsRequest(output[_NBG], context); } - if (output.AllowedInstanceTypes === "") { + if (String(output.AllowedInstanceTypes).trim() === "") { contents[_AIT] = []; } else if (output[_AIT] != null && output[_AIT][_me] != null) { contents[_AIT] = de_AllowedInstanceTypes(__getArrayIfSingleItem(output[_AIT][_me]), context); @@ -8298,7 +8298,7 @@ const de_LaunchConfiguration = (output: any, context: __SerdeContext): LaunchCon if (output[_KN] != null) { contents[_KN] = __expectString(output[_KN]); } - if (output.SecurityGroups === "") { + if (String(output.SecurityGroups).trim() === "") { contents[_SG] = []; } else if (output[_SG] != null && output[_SG][_me] != null) { contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_me]), context); @@ -8306,7 +8306,7 @@ const de_LaunchConfiguration = (output: any, context: __SerdeContext): LaunchCon if (output[_CLVPCI] != null) { contents[_CLVPCI] = __expectString(output[_CLVPCI]); } - if (output.ClassicLinkVPCSecurityGroups === "") { + if (String(output.ClassicLinkVPCSecurityGroups).trim() === "") { contents[_CLVPCSG] = []; } else if (output[_CLVPCSG] != null && output[_CLVPCSG][_me] != null) { contents[_CLVPCSG] = de_ClassicLinkVPCSecurityGroups(__getArrayIfSingleItem(output[_CLVPCSG][_me]), context); @@ -8323,7 +8323,7 @@ const de_LaunchConfiguration = (output: any, context: __SerdeContext): LaunchCon if (output[_RI] != null) { contents[_RI] = __expectString(output[_RI]); } - if (output.BlockDeviceMappings === "") { + if (String(output.BlockDeviceMappings).trim() === "") { contents[_BDM] = []; } else if (output[_BDM] != null && output[_BDM][_me] != null) { contents[_BDM] = de_BlockDeviceMappings(__getArrayIfSingleItem(output[_BDM][_me]), context); @@ -8371,7 +8371,7 @@ const de_LaunchConfigurations = (output: any, context: __SerdeContext): LaunchCo */ const de_LaunchConfigurationsType = (output: any, context: __SerdeContext): LaunchConfigurationsType => { const contents: any = {}; - if (output.LaunchConfigurations === "") { + if (String(output.LaunchConfigurations).trim() === "") { contents[_LC] = []; } else if (output[_LC] != null && output[_LC][_me] != null) { contents[_LC] = de_LaunchConfigurations(__getArrayIfSingleItem(output[_LC][_me]), context); @@ -8390,7 +8390,7 @@ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate if (output[_LTS] != null) { contents[_LTS] = de_LaunchTemplateSpecification(output[_LTS], context); } - if (output.Overrides === "") { + if (String(output.Overrides).trim() === "") { contents[_O] = []; } else if (output[_O] != null && output[_O][_me] != null) { contents[_O] = de_Overrides(__getArrayIfSingleItem(output[_O][_me]), context); @@ -8558,12 +8558,12 @@ const de_LoadBalancerTargetGroupStates = (output: any, context: __SerdeContext): */ const de_LoadForecast = (output: any, context: __SerdeContext): LoadForecast => { const contents: any = {}; - if (output.Timestamps === "") { + if (String(output.Timestamps).trim() === "") { contents[_Tim] = []; } else if (output[_Tim] != null && output[_Tim][_me] != null) { contents[_Tim] = de_PredictiveScalingForecastTimestamps(__getArrayIfSingleItem(output[_Tim][_me]), context); } - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_me] != null) { contents[_Va] = de_PredictiveScalingForecastValues(__getArrayIfSingleItem(output[_Va][_me]), context); @@ -8635,7 +8635,7 @@ const de_Metric = (output: any, context: __SerdeContext): Metric => { if (output[_MN] != null) { contents[_MN] = __expectString(output[_MN]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_me] != null) { contents[_D] = de_MetricDimensions(__getArrayIfSingleItem(output[_D][_me]), context); @@ -8877,7 +8877,7 @@ const de_PerformanceFactorReferenceSetRequest = ( */ const de_PoliciesType = (output: any, context: __SerdeContext): PoliciesType => { const contents: any = {}; - if (output.ScalingPolicies === "") { + if (String(output.ScalingPolicies).trim() === "") { contents[_SPca] = []; } else if (output[_SPca] != null && output[_SPca][_me] != null) { contents[_SPca] = de_ScalingPolicies(__getArrayIfSingleItem(output[_SPca][_me]), context); @@ -8896,7 +8896,7 @@ const de_PolicyARNType = (output: any, context: __SerdeContext): PolicyARNType = if (output[_PARN] != null) { contents[_PARN] = __expectString(output[_PARN]); } - if (output.Alarms === "") { + if (String(output.Alarms).trim() === "") { contents[_Al] = []; } else if (output[_Al] != null && output[_Al][_me] != null) { contents[_Al] = de_Alarms(__getArrayIfSingleItem(output[_Al][_me]), context); @@ -8923,7 +8923,7 @@ const de_PredefinedMetricSpecification = (output: any, context: __SerdeContext): */ const de_PredictiveScalingConfiguration = (output: any, context: __SerdeContext): PredictiveScalingConfiguration => { const contents: any = {}; - if (output.MetricSpecifications === "") { + if (String(output.MetricSpecifications).trim() === "") { contents[_MSet] = []; } else if (output[_MSet] != null && output[_MSet][_me] != null) { contents[_MSet] = de_PredictiveScalingMetricSpecifications(__getArrayIfSingleItem(output[_MSet][_me]), context); @@ -8951,7 +8951,7 @@ const de_PredictiveScalingCustomizedCapacityMetric = ( context: __SerdeContext ): PredictiveScalingCustomizedCapacityMetric => { const contents: any = {}; - if (output.MetricDataQueries === "") { + if (String(output.MetricDataQueries).trim() === "") { contents[_MDQ] = []; } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); @@ -8967,7 +8967,7 @@ const de_PredictiveScalingCustomizedLoadMetric = ( context: __SerdeContext ): PredictiveScalingCustomizedLoadMetric => { const contents: any = {}; - if (output.MetricDataQueries === "") { + if (String(output.MetricDataQueries).trim() === "") { contents[_MDQ] = []; } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); @@ -8983,7 +8983,7 @@ const de_PredictiveScalingCustomizedScalingMetric = ( context: __SerdeContext ): PredictiveScalingCustomizedScalingMetric => { const contents: any = {}; - if (output.MetricDataQueries === "") { + if (String(output.MetricDataQueries).trim() === "") { contents[_MDQ] = []; } else if (output[_MDQ] != null && output[_MDQ][_me] != null) { contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_me]), context); @@ -9126,7 +9126,7 @@ const de_Processes = (output: any, context: __SerdeContext): ProcessType[] => { */ const de_ProcessesType = (output: any, context: __SerdeContext): ProcessesType => { const contents: any = {}; - if (output.Processes === "") { + if (String(output.Processes).trim() === "") { contents[_Proc] = []; } else if (output[_Proc] != null && output[_Proc][_me] != null) { contents[_Proc] = de_Processes(__getArrayIfSingleItem(output[_Proc][_me]), context); @@ -9183,7 +9183,7 @@ const de_RefreshPreferences = (output: any, context: __SerdeContext): RefreshPre if (output[_IW] != null) { contents[_IW] = __strictParseInt32(output[_IW]) as number; } - if (output.CheckpointPercentages === "") { + if (String(output.CheckpointPercentages).trim() === "") { contents[_CP] = []; } else if (output[_CP] != null && output[_CP][_me] != null) { contents[_CP] = de_CheckpointPercentages(__getArrayIfSingleItem(output[_CP][_me]), context); @@ -9325,7 +9325,7 @@ const de_ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy = if (output[_Coo] != null) { contents[_Coo] = __strictParseInt32(output[_Coo]) as number; } - if (output.StepAdjustments === "") { + if (String(output.StepAdjustments).trim() === "") { contents[_SAt] = []; } else if (output[_SAt] != null && output[_SAt][_me] != null) { contents[_SAt] = de_StepAdjustments(__getArrayIfSingleItem(output[_SAt][_me]), context); @@ -9336,7 +9336,7 @@ const de_ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy = if (output[_EIW] != null) { contents[_EIW] = __strictParseInt32(output[_EIW]) as number; } - if (output.Alarms === "") { + if (String(output.Alarms).trim() === "") { contents[_Al] = []; } else if (output[_Al] != null && output[_Al][_me] != null) { contents[_Al] = de_Alarms(__getArrayIfSingleItem(output[_Al][_me]), context); @@ -9358,7 +9358,7 @@ const de_ScalingPolicy = (output: any, context: __SerdeContext): ScalingPolicy = */ const de_ScheduledActionsType = (output: any, context: __SerdeContext): ScheduledActionsType => { const contents: any = {}; - if (output.ScheduledUpdateGroupActions === "") { + if (String(output.ScheduledUpdateGroupActions).trim() === "") { contents[_SUGA] = []; } else if (output[_SUGA] != null && output[_SUGA][_me] != null) { contents[_SUGA] = de_ScheduledUpdateGroupActions(__getArrayIfSingleItem(output[_SUGA][_me]), context); @@ -9554,7 +9554,7 @@ const de_TagDescriptionList = (output: any, context: __SerdeContext): TagDescrip */ const de_TagsType = (output: any, context: __SerdeContext): TagsType => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_TagDescriptionList(__getArrayIfSingleItem(output[_T][_me]), context); diff --git a/clients/client-cloudformation/src/protocols/Aws_query.ts b/clients/client-cloudformation/src/protocols/Aws_query.ts index 0abf8babd913..ceeff5351dab 100644 --- a/clients/client-cloudformation/src/protocols/Aws_query.ts +++ b/clients/client-cloudformation/src/protocols/Aws_query.ts @@ -7748,17 +7748,17 @@ const de_BatchDescribeTypeConfigurationsOutput = ( context: __SerdeContext ): BatchDescribeTypeConfigurationsOutput => { const contents: any = {}; - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_m] != null) { contents[_Er] = de_BatchDescribeTypeConfigurationsErrors(__getArrayIfSingleItem(output[_Er][_m]), context); } - if (output.UnprocessedTypeConfigurations === "") { + if (String(output.UnprocessedTypeConfigurations).trim() === "") { contents[_UTC] = []; } else if (output[_UTC] != null && output[_UTC][_m] != null) { contents[_UTC] = de_UnprocessedTypeConfigurations(__getArrayIfSingleItem(output[_UTC][_m]), context); } - if (output.TypeConfigurations === "") { + if (String(output.TypeConfigurations).trim() === "") { contents[_TCy] = []; } else if (output[_TCy] != null && output[_TCy][_m] != null) { contents[_TCy] = de_TypeConfigurationDetailsList(__getArrayIfSingleItem(output[_TCy][_m]), context); @@ -8109,7 +8109,7 @@ const de_DeleteStackSetOutput = (output: any, context: __SerdeContext): DeleteSt */ const de_DeploymentTargets = (output: any, context: __SerdeContext): DeploymentTargets => { const contents: any = {}; - if (output.Accounts === "") { + if (String(output.Accounts).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_m] != null) { contents[_Ac] = de_AccountList(__getArrayIfSingleItem(output[_Ac][_m]), context); @@ -8117,7 +8117,7 @@ const de_DeploymentTargets = (output: any, context: __SerdeContext): DeploymentT if (output[_AUc] != null) { contents[_AUc] = __expectString(output[_AUc]); } - if (output.OrganizationalUnitIds === "") { + if (String(output.OrganizationalUnitIds).trim() === "") { contents[_OUI] = []; } else if (output[_OUI] != null && output[_OUI][_m] != null) { contents[_OUI] = de_OrganizationalUnitIdList(__getArrayIfSingleItem(output[_OUI][_m]), context); @@ -8141,7 +8141,7 @@ const de_DeregisterTypeOutput = (output: any, context: __SerdeContext): Deregist */ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; - if (output.AccountLimits === "") { + if (String(output.AccountLimits).trim() === "") { contents[_AL] = []; } else if (output[_AL] != null && output[_AL][_m] != null) { contents[_AL] = de_AccountLimitList(__getArrayIfSingleItem(output[_AL][_m]), context); @@ -8163,7 +8163,7 @@ const de_DescribeChangeSetHooksOutput = (output: any, context: __SerdeContext): if (output[_CSN] != null) { contents[_CSN] = __expectString(output[_CSN]); } - if (output.Hooks === "") { + if (String(output.Hooks).trim() === "") { contents[_H] = []; } else if (output[_H] != null && output[_H][_m] != null) { contents[_H] = de_ChangeSetHooks(__getArrayIfSingleItem(output[_H][_m]), context); @@ -8203,7 +8203,7 @@ const de_DescribeChangeSetOutput = (output: any, context: __SerdeContext): Descr if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); @@ -8220,7 +8220,7 @@ const de_DescribeChangeSetOutput = (output: any, context: __SerdeContext): Descr if (output[_SRt] != null) { contents[_SRt] = __expectString(output[_SRt]); } - if (output.NotificationARNs === "") { + if (String(output.NotificationARNs).trim() === "") { contents[_NARN] = []; } else if (output[_NARN] != null && output[_NARN][_m] != null) { contents[_NARN] = de_NotificationARNs(__getArrayIfSingleItem(output[_NARN][_m]), context); @@ -8228,17 +8228,17 @@ const de_DescribeChangeSetOutput = (output: any, context: __SerdeContext): Descr if (output[_RC] != null) { contents[_RC] = de_RollbackConfiguration(output[_RC], context); } - if (output.Capabilities === "") { + if (String(output.Capabilities).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_m] != null) { contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); } - if (output.Changes === "") { + if (String(output.Changes).trim() === "") { contents[_Ch] = []; } else if (output[_Ch] != null && output[_Ch][_m] != null) { contents[_Ch] = de_Changes(__getArrayIfSingleItem(output[_Ch][_m]), context); @@ -8275,7 +8275,7 @@ const de_DescribeGeneratedTemplateOutput = (output: any, context: __SerdeContext if (output[_GTN] != null) { contents[_GTN] = __expectString(output[_GTN]); } - if (output.Resources === "") { + if (String(output.Resources).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_m] != null) { contents[_R] = de_ResourceDetails(__getArrayIfSingleItem(output[_R][_m]), context); @@ -8364,7 +8364,7 @@ const de_DescribeResourceScanOutput = (output: any, context: __SerdeContext): De if (output[_PC] != null) { contents[_PC] = __strictParseFloat(output[_PC]) as number; } - if (output.ResourceTypes === "") { + if (String(output.ResourceTypes).trim() === "") { contents[_RTe] = []; } else if (output[_RTe] != null && output[_RTe][_m] != null) { contents[_RTe] = de_ResourceTypes(__getArrayIfSingleItem(output[_RTe][_m]), context); @@ -8375,7 +8375,7 @@ const de_DescribeResourceScanOutput = (output: any, context: __SerdeContext): De if (output[_RRes] != null) { contents[_RRes] = __strictParseInt32(output[_RRes]) as number; } - if (output.ScanFilters === "") { + if (String(output.ScanFilters).trim() === "") { contents[_SF] = []; } else if (output[_SF] != null && output[_SF][_m] != null) { contents[_SF] = de_ScanFilters(__getArrayIfSingleItem(output[_SF][_m]), context); @@ -8420,7 +8420,7 @@ const de_DescribeStackDriftDetectionStatusOutput = ( */ const de_DescribeStackEventsOutput = (output: any, context: __SerdeContext): DescribeStackEventsOutput => { const contents: any = {}; - if (output.StackEvents === "") { + if (String(output.StackEvents).trim() === "") { contents[_SE] = []; } else if (output[_SE] != null && output[_SE][_m] != null) { contents[_SE] = de_StackEvents(__getArrayIfSingleItem(output[_SE][_m]), context); @@ -8453,7 +8453,7 @@ const de_DescribeStackRefactorOutput = (output: any, context: __SerdeContext): D if (output[_SRI] != null) { contents[_SRI] = __expectString(output[_SRI]); } - if (output.StackIds === "") { + if (String(output.StackIds).trim() === "") { contents[_SIt] = []; } else if (output[_SIt] != null && output[_SIt][_m] != null) { contents[_SIt] = de_StackIds(__getArrayIfSingleItem(output[_SIt][_m]), context); @@ -8481,7 +8481,7 @@ const de_DescribeStackResourceDriftsOutput = ( context: __SerdeContext ): DescribeStackResourceDriftsOutput => { const contents: any = {}; - if (output.StackResourceDrifts === "") { + if (String(output.StackResourceDrifts).trim() === "") { contents[_SRD] = []; } else if (output[_SRD] != null && output[_SRD][_m] != null) { contents[_SRD] = de_StackResourceDrifts(__getArrayIfSingleItem(output[_SRD][_m]), context); @@ -8508,7 +8508,7 @@ const de_DescribeStackResourceOutput = (output: any, context: __SerdeContext): D */ const de_DescribeStackResourcesOutput = (output: any, context: __SerdeContext): DescribeStackResourcesOutput => { const contents: any = {}; - if (output.StackResources === "") { + if (String(output.StackResources).trim() === "") { contents[_SRta] = []; } else if (output[_SRta] != null && output[_SRta][_m] != null) { contents[_SRta] = de_StackResources(__getArrayIfSingleItem(output[_SRta][_m]), context); @@ -8543,7 +8543,7 @@ const de_DescribeStackSetOutput = (output: any, context: __SerdeContext): Descri */ const de_DescribeStacksOutput = (output: any, context: __SerdeContext): DescribeStacksOutput => { const contents: any = {}; - if (output.Stacks === "") { + if (String(output.Stacks).trim() === "") { contents[_St] = []; } else if (output[_St] != null && output[_St][_m] != null) { contents[_St] = de_Stacks(__getArrayIfSingleItem(output[_St][_m]), context); @@ -8595,7 +8595,7 @@ const de_DescribeTypeOutput = (output: any, context: __SerdeContext): DescribeTy if (output[_LC] != null) { contents[_LC] = de_LoggingConfig(output[_LC], context); } - if (output.RequiredActivatedTypes === "") { + if (String(output.RequiredActivatedTypes).trim() === "") { contents[_RAT] = []; } else if (output[_RAT] != null && output[_RAT][_m] != null) { contents[_RAT] = de_RequiredActivatedTypes(__getArrayIfSingleItem(output[_RAT][_m]), context); @@ -8792,7 +8792,7 @@ const de_GetTemplateOutput = (output: any, context: __SerdeContext): GetTemplate if (output[_TB] != null) { contents[_TB] = __expectString(output[_TB]); } - if (output.StagesAvailable === "") { + if (String(output.StagesAvailable).trim() === "") { contents[_SA] = []; } else if (output[_SA] != null && output[_SA][_m] != null) { contents[_SA] = de_StageList(__getArrayIfSingleItem(output[_SA][_m]), context); @@ -8805,7 +8805,7 @@ const de_GetTemplateOutput = (output: any, context: __SerdeContext): GetTemplate */ const de_GetTemplateSummaryOutput = (output: any, context: __SerdeContext): GetTemplateSummaryOutput => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_ParameterDeclarations(__getArrayIfSingleItem(output[_P][_m]), context); @@ -8813,7 +8813,7 @@ const de_GetTemplateSummaryOutput = (output: any, context: __SerdeContext): GetT if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.Capabilities === "") { + if (String(output.Capabilities).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); @@ -8821,7 +8821,7 @@ const de_GetTemplateSummaryOutput = (output: any, context: __SerdeContext): GetT if (output[_CR] != null) { contents[_CR] = __expectString(output[_CR]); } - if (output.ResourceTypes === "") { + if (String(output.ResourceTypes).trim() === "") { contents[_RTe] = []; } else if (output[_RTe] != null && output[_RTe][_m] != null) { contents[_RTe] = de_ResourceTypes(__getArrayIfSingleItem(output[_RTe][_m]), context); @@ -8832,12 +8832,12 @@ const de_GetTemplateSummaryOutput = (output: any, context: __SerdeContext): GetT if (output[_Me] != null) { contents[_Me] = __expectString(output[_Me]); } - if (output.DeclaredTransforms === "") { + if (String(output.DeclaredTransforms).trim() === "") { contents[_DTec] = []; } else if (output[_DTec] != null && output[_DTec][_m] != null) { contents[_DTec] = de_TransformsList(__getArrayIfSingleItem(output[_DTec][_m]), context); } - if (output.ResourceIdentifierSummaries === "") { + if (String(output.ResourceIdentifierSummaries).trim() === "") { contents[_RIS] = []; } else if (output[_RIS] != null && output[_RIS][_m] != null) { contents[_RIS] = de_ResourceIdentifierSummaries(__getArrayIfSingleItem(output[_RIS][_m]), context); @@ -9015,7 +9015,7 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE */ const de_ListChangeSetsOutput = (output: any, context: __SerdeContext): ListChangeSetsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_ChangeSetSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9031,7 +9031,7 @@ const de_ListChangeSetsOutput = (output: any, context: __SerdeContext): ListChan */ const de_ListExportsOutput = (output: any, context: __SerdeContext): ListExportsOutput => { const contents: any = {}; - if (output.Exports === "") { + if (String(output.Exports).trim() === "") { contents[_Ex] = []; } else if (output[_Ex] != null && output[_Ex][_m] != null) { contents[_Ex] = de_Exports(__getArrayIfSingleItem(output[_Ex][_m]), context); @@ -9047,7 +9047,7 @@ const de_ListExportsOutput = (output: any, context: __SerdeContext): ListExports */ const de_ListGeneratedTemplatesOutput = (output: any, context: __SerdeContext): ListGeneratedTemplatesOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_TemplateSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9069,7 +9069,7 @@ const de_ListHookResultsOutput = (output: any, context: __SerdeContext): ListHoo if (output[_TI] != null) { contents[_TI] = __expectString(output[_TI]); } - if (output.HookResults === "") { + if (String(output.HookResults).trim() === "") { contents[_HR] = []; } else if (output[_HR] != null && output[_HR][_m] != null) { contents[_HR] = de_HookResultSummaries(__getArrayIfSingleItem(output[_HR][_m]), context); @@ -9085,7 +9085,7 @@ const de_ListHookResultsOutput = (output: any, context: __SerdeContext): ListHoo */ const de_ListImportsOutput = (output: any, context: __SerdeContext): ListImportsOutput => { const contents: any = {}; - if (output.Imports === "") { + if (String(output.Imports).trim() === "") { contents[_Im] = []; } else if (output[_Im] != null && output[_Im][_m] != null) { contents[_Im] = de_Imports(__getArrayIfSingleItem(output[_Im][_m]), context); @@ -9104,7 +9104,7 @@ const de_ListResourceScanRelatedResourcesOutput = ( context: __SerdeContext ): ListResourceScanRelatedResourcesOutput => { const contents: any = {}; - if (output.RelatedResources === "") { + if (String(output.RelatedResources).trim() === "") { contents[_RRel] = []; } else if (output[_RRel] != null && output[_RRel][_m] != null) { contents[_RRel] = de_RelatedResources(__getArrayIfSingleItem(output[_RRel][_m]), context); @@ -9120,7 +9120,7 @@ const de_ListResourceScanRelatedResourcesOutput = ( */ const de_ListResourceScanResourcesOutput = (output: any, context: __SerdeContext): ListResourceScanResourcesOutput => { const contents: any = {}; - if (output.Resources === "") { + if (String(output.Resources).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_m] != null) { contents[_R] = de_ScannedResources(__getArrayIfSingleItem(output[_R][_m]), context); @@ -9136,7 +9136,7 @@ const de_ListResourceScanResourcesOutput = (output: any, context: __SerdeContext */ const de_ListResourceScansOutput = (output: any, context: __SerdeContext): ListResourceScansOutput => { const contents: any = {}; - if (output.ResourceScanSummaries === "") { + if (String(output.ResourceScanSummaries).trim() === "") { contents[_RSS] = []; } else if (output[_RSS] != null && output[_RSS][_m] != null) { contents[_RSS] = de_ResourceScanSummaries(__getArrayIfSingleItem(output[_RSS][_m]), context); @@ -9155,7 +9155,7 @@ const de_ListStackInstanceResourceDriftsOutput = ( context: __SerdeContext ): ListStackInstanceResourceDriftsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackInstanceResourceDriftsSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9171,7 +9171,7 @@ const de_ListStackInstanceResourceDriftsOutput = ( */ const de_ListStackInstancesOutput = (output: any, context: __SerdeContext): ListStackInstancesOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackInstanceSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9187,7 +9187,7 @@ const de_ListStackInstancesOutput = (output: any, context: __SerdeContext): List */ const de_ListStackRefactorActionsOutput = (output: any, context: __SerdeContext): ListStackRefactorActionsOutput => { const contents: any = {}; - if (output.StackRefactorActions === "") { + if (String(output.StackRefactorActions).trim() === "") { contents[_SRA] = []; } else if (output[_SRA] != null && output[_SRA][_m] != null) { contents[_SRA] = de_StackRefactorActions(__getArrayIfSingleItem(output[_SRA][_m]), context); @@ -9203,7 +9203,7 @@ const de_ListStackRefactorActionsOutput = (output: any, context: __SerdeContext) */ const de_ListStackRefactorsOutput = (output: any, context: __SerdeContext): ListStackRefactorsOutput => { const contents: any = {}; - if (output.StackRefactorSummaries === "") { + if (String(output.StackRefactorSummaries).trim() === "") { contents[_SRSt] = []; } else if (output[_SRSt] != null && output[_SRSt][_m] != null) { contents[_SRSt] = de_StackRefactorSummaries(__getArrayIfSingleItem(output[_SRSt][_m]), context); @@ -9219,7 +9219,7 @@ const de_ListStackRefactorsOutput = (output: any, context: __SerdeContext): List */ const de_ListStackResourcesOutput = (output: any, context: __SerdeContext): ListStackResourcesOutput => { const contents: any = {}; - if (output.StackResourceSummaries === "") { + if (String(output.StackResourceSummaries).trim() === "") { contents[_SRSta] = []; } else if (output[_SRSta] != null && output[_SRSta][_m] != null) { contents[_SRSta] = de_StackResourceSummaries(__getArrayIfSingleItem(output[_SRSta][_m]), context); @@ -9238,7 +9238,7 @@ const de_ListStackSetAutoDeploymentTargetsOutput = ( context: __SerdeContext ): ListStackSetAutoDeploymentTargetsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackSetAutoDeploymentTargetSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9257,7 +9257,7 @@ const de_ListStackSetOperationResultsOutput = ( context: __SerdeContext ): ListStackSetOperationResultsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackSetOperationResultSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9273,7 +9273,7 @@ const de_ListStackSetOperationResultsOutput = ( */ const de_ListStackSetOperationsOutput = (output: any, context: __SerdeContext): ListStackSetOperationsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackSetOperationSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9289,7 +9289,7 @@ const de_ListStackSetOperationsOutput = (output: any, context: __SerdeContext): */ const de_ListStackSetsOutput = (output: any, context: __SerdeContext): ListStackSetsOutput => { const contents: any = {}; - if (output.Summaries === "") { + if (String(output.Summaries).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_m] != null) { contents[_Su] = de_StackSetSummaries(__getArrayIfSingleItem(output[_Su][_m]), context); @@ -9305,7 +9305,7 @@ const de_ListStackSetsOutput = (output: any, context: __SerdeContext): ListStack */ const de_ListStacksOutput = (output: any, context: __SerdeContext): ListStacksOutput => { const contents: any = {}; - if (output.StackSummaries === "") { + if (String(output.StackSummaries).trim() === "") { contents[_SSt] = []; } else if (output[_SSt] != null && output[_SSt][_m] != null) { contents[_SSt] = de_StackSummaries(__getArrayIfSingleItem(output[_SSt][_m]), context); @@ -9321,7 +9321,7 @@ const de_ListStacksOutput = (output: any, context: __SerdeContext): ListStacksOu */ const de_ListTypeRegistrationsOutput = (output: any, context: __SerdeContext): ListTypeRegistrationsOutput => { const contents: any = {}; - if (output.RegistrationTokenList === "") { + if (String(output.RegistrationTokenList).trim() === "") { contents[_RTL] = []; } else if (output[_RTL] != null && output[_RTL][_m] != null) { contents[_RTL] = de_RegistrationTokenList(__getArrayIfSingleItem(output[_RTL][_m]), context); @@ -9337,7 +9337,7 @@ const de_ListTypeRegistrationsOutput = (output: any, context: __SerdeContext): L */ const de_ListTypesOutput = (output: any, context: __SerdeContext): ListTypesOutput => { const contents: any = {}; - if (output.TypeSummaries === "") { + if (String(output.TypeSummaries).trim() === "") { contents[_TSy] = []; } else if (output[_TSy] != null && output[_TSy][_m] != null) { contents[_TSy] = de_TypeSummaries(__getArrayIfSingleItem(output[_TSy][_m]), context); @@ -9353,7 +9353,7 @@ const de_ListTypesOutput = (output: any, context: __SerdeContext): ListTypesOutp */ const de_ListTypeVersionsOutput = (output: any, context: __SerdeContext): ListTypeVersionsOutput => { const contents: any = {}; - if (output.TypeVersionSummaries === "") { + if (String(output.TypeVersionSummaries).trim() === "") { contents[_TVS] = []; } else if (output[_TVS] != null && output[_TVS][_m] != null) { contents[_TVS] = de_TypeVersionSummaries(__getArrayIfSingleItem(output[_TVS][_m]), context); @@ -9553,7 +9553,7 @@ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { */ const de_ParameterConstraints = (output: any, context: __SerdeContext): ParameterConstraints => { const contents: any = {}; - if (output.AllowedValues === "") { + if (String(output.AllowedValues).trim() === "") { contents[_AV] = []; } else if (output[_AV] != null && output[_AV][_m] != null) { contents[_AV] = de_AllowedValues(__getArrayIfSingleItem(output[_AV][_m]), context); @@ -9759,7 +9759,7 @@ const de_RequiredActivatedType = (output: any, context: __SerdeContext): Require if (output[_PI] != null) { contents[_PI] = __expectString(output[_PI]); } - if (output.SupportedMajorVersions === "") { + if (String(output.SupportedMajorVersions).trim() === "") { contents[_SMV] = []; } else if (output[_SMV] != null && output[_SMV][_m] != null) { contents[_SMV] = de_SupportedMajorVersions(__getArrayIfSingleItem(output[_SMV][_m]), context); @@ -9801,12 +9801,12 @@ const de_ResourceChange = (output: any, context: __SerdeContext): ResourceChange if (output[_Rep] != null) { contents[_Rep] = __expectString(output[_Rep]); } - if (output.Scope === "") { + if (String(output.Scope).trim() === "") { contents[_Sco] = []; } else if (output[_Sco] != null && output[_Sco][_m] != null) { contents[_Sco] = de_Scope(__getArrayIfSingleItem(output[_Sco][_m]), context); } - if (output.Details === "") { + if (String(output.Details).trim() === "") { contents[_Det] = []; } else if (output[_Det] != null && output[_Det][_m] != null) { contents[_Det] = de_ResourceChangeDetails(__getArrayIfSingleItem(output[_Det][_m]), context); @@ -9868,7 +9868,7 @@ const de_ResourceDetail = (output: any, context: __SerdeContext): ResourceDetail if (output[_LRI] != null) { contents[_LRI] = __expectString(output[_LRI]); } - if (output.ResourceIdentifier === "") { + if (String(output.ResourceIdentifier).trim() === "") { contents[_RI] = {}; } else if (output[_RI] != null && output[_RI][_e] != null) { contents[_RI] = de_ResourceIdentifierProperties(__getArrayIfSingleItem(output[_RI][_e]), context); @@ -9879,7 +9879,7 @@ const de_ResourceDetail = (output: any, context: __SerdeContext): ResourceDetail if (output[_RSR] != null) { contents[_RSR] = __expectString(output[_RSR]); } - if (output.Warnings === "") { + if (String(output.Warnings).trim() === "") { contents[_W] = []; } else if (output[_W] != null && output[_W][_m] != null) { contents[_W] = de_WarningDetails(__getArrayIfSingleItem(output[_W][_m]), context); @@ -9941,12 +9941,12 @@ const de_ResourceIdentifierSummary = (output: any, context: __SerdeContext): Res if (output[_RTes] != null) { contents[_RTes] = __expectString(output[_RTes]); } - if (output.LogicalResourceIds === "") { + if (String(output.LogicalResourceIds).trim() === "") { contents[_LRIo] = []; } else if (output[_LRIo] != null && output[_LRIo][_m] != null) { contents[_LRIo] = de_LogicalResourceIds(__getArrayIfSingleItem(output[_LRIo][_m]), context); } - if (output.ResourceIdentifiers === "") { + if (String(output.ResourceIdentifiers).trim() === "") { contents[_RIe] = []; } else if (output[_RIe] != null && output[_RIe][_m] != null) { contents[_RIe] = de_ResourceIdentifiers(__getArrayIfSingleItem(output[_RIe][_m]), context); @@ -10114,7 +10114,7 @@ const de_ResourceTypes = (output: any, context: __SerdeContext): string[] => { */ const de_RollbackConfiguration = (output: any, context: __SerdeContext): RollbackConfiguration => { const contents: any = {}; - if (output.RollbackTriggers === "") { + if (String(output.RollbackTriggers).trim() === "") { contents[_RTo] = []; } else if (output[_RTo] != null && output[_RTo][_m] != null) { contents[_RTo] = de_RollbackTriggers(__getArrayIfSingleItem(output[_RTo][_m]), context); @@ -10166,7 +10166,7 @@ const de_RollbackTriggers = (output: any, context: __SerdeContext): RollbackTrig */ const de_ScanFilter = (output: any, context: __SerdeContext): ScanFilter => { const contents: any = {}; - if (output.Types === "") { + if (String(output.Types).trim() === "") { contents[_Ty] = []; } else if (output[_Ty] != null && output[_Ty][_m] != null) { contents[_Ty] = de_ResourceTypeFilters(__getArrayIfSingleItem(output[_Ty][_m]), context); @@ -10193,7 +10193,7 @@ const de_ScannedResource = (output: any, context: __SerdeContext): ScannedResour if (output[_RTes] != null) { contents[_RTes] = __expectString(output[_RTes]); } - if (output.ResourceIdentifier === "") { + if (String(output.ResourceIdentifier).trim() === "") { contents[_RI] = {}; } else if (output[_RI] != null && output[_RI][_e] != null) { contents[_RI] = de_JazzResourceIdentifierProperties(__getArrayIfSingleItem(output[_RI][_e]), context); @@ -10262,7 +10262,7 @@ const de_Stack = (output: any, context: __SerdeContext): Stack => { if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); @@ -10288,7 +10288,7 @@ const de_Stack = (output: any, context: __SerdeContext): Stack => { if (output[_DR] != null) { contents[_DR] = __parseBoolean(output[_DR]); } - if (output.NotificationARNs === "") { + if (String(output.NotificationARNs).trim() === "") { contents[_NARN] = []; } else if (output[_NARN] != null && output[_NARN][_m] != null) { contents[_NARN] = de_NotificationARNs(__getArrayIfSingleItem(output[_NARN][_m]), context); @@ -10296,12 +10296,12 @@ const de_Stack = (output: any, context: __SerdeContext): Stack => { if (output[_TIM] != null) { contents[_TIM] = __strictParseInt32(output[_TIM]) as number; } - if (output.Capabilities === "") { + if (String(output.Capabilities).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output.Outputs === "") { + if (String(output.Outputs).trim() === "") { contents[_O] = []; } else if (output[_O] != null && output[_O][_m] != null) { contents[_O] = de_Outputs(__getArrayIfSingleItem(output[_O][_m]), context); @@ -10309,7 +10309,7 @@ const de_Stack = (output: any, context: __SerdeContext): Stack => { if (output[_RARN] != null) { contents[_RARN] = __expectString(output[_RARN]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_m] != null) { contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); @@ -10467,7 +10467,7 @@ const de_StackInstance = (output: any, context: __SerdeContext): StackInstance = if (output[_SI] != null) { contents[_SI] = __expectString(output[_SI]); } - if (output.ParameterOverrides === "") { + if (String(output.ParameterOverrides).trim() === "") { contents[_PO] = []; } else if (output[_PO] != null && output[_PO][_m] != null) { contents[_PO] = de_Parameters(__getArrayIfSingleItem(output[_PO][_m]), context); @@ -10552,7 +10552,7 @@ const de_StackInstanceResourceDriftsSummary = ( if (output[_PRI] != null) { contents[_PRI] = __expectString(output[_PRI]); } - if (output.PhysicalResourceIdContext === "") { + if (String(output.PhysicalResourceIdContext).trim() === "") { contents[_PRIC] = []; } else if (output[_PRIC] != null && output[_PRIC][_m] != null) { contents[_PRIC] = de_PhysicalResourceIdContext(__getArrayIfSingleItem(output[_PRIC][_m]), context); @@ -10560,7 +10560,7 @@ const de_StackInstanceResourceDriftsSummary = ( if (output[_RTes] != null) { contents[_RTes] = __expectString(output[_RTes]); } - if (output.PropertyDifferences === "") { + if (String(output.PropertyDifferences).trim() === "") { contents[_PD] = []; } else if (output[_PD] != null && output[_PD][_m] != null) { contents[_PD] = de_PropertyDifferences(__getArrayIfSingleItem(output[_PD][_m]), context); @@ -10663,12 +10663,12 @@ const de_StackRefactorAction = (output: any, context: __SerdeContext): StackRefa if (output[_DRe] != null) { contents[_DRe] = __expectString(output[_DRe]); } - if (output.TagResources === "") { + if (String(output.TagResources).trim() === "") { contents[_TR] = []; } else if (output[_TR] != null && output[_TR][_m] != null) { contents[_TR] = de_StackRefactorTagResources(__getArrayIfSingleItem(output[_TR][_m]), context); } - if (output.UntagResources === "") { + if (String(output.UntagResources).trim() === "") { contents[_UR] = []; } else if (output[_UR] != null && output[_UR][_m] != null) { contents[_UR] = de_StackRefactorUntagResources(__getArrayIfSingleItem(output[_UR][_m]), context); @@ -10859,7 +10859,7 @@ const de_StackResourceDrift = (output: any, context: __SerdeContext): StackResou if (output[_PRI] != null) { contents[_PRI] = __expectString(output[_PRI]); } - if (output.PhysicalResourceIdContext === "") { + if (String(output.PhysicalResourceIdContext).trim() === "") { contents[_PRIC] = []; } else if (output[_PRIC] != null && output[_PRIC][_m] != null) { contents[_PRIC] = de_PhysicalResourceIdContext(__getArrayIfSingleItem(output[_PRIC][_m]), context); @@ -10873,7 +10873,7 @@ const de_StackResourceDrift = (output: any, context: __SerdeContext): StackResou if (output[_AP] != null) { contents[_AP] = __expectString(output[_AP]); } - if (output.PropertyDifferences === "") { + if (String(output.PropertyDifferences).trim() === "") { contents[_PD] = []; } else if (output[_PD] != null && output[_PD][_m] != null) { contents[_PD] = de_PropertyDifferences(__getArrayIfSingleItem(output[_PD][_m]), context); @@ -11020,17 +11020,17 @@ const de_StackSet = (output: any, context: __SerdeContext): StackSet => { if (output[_TB] != null) { contents[_TB] = __expectString(output[_TB]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); } - if (output.Capabilities === "") { + if (String(output.Capabilities).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_m] != null) { contents[_Ta] = de_Tags(__getArrayIfSingleItem(output[_Ta][_m]), context); @@ -11053,7 +11053,7 @@ const de_StackSet = (output: any, context: __SerdeContext): StackSet => { if (output[_PM] != null) { contents[_PM] = __expectString(output[_PM]); } - if (output.OrganizationalUnitIds === "") { + if (String(output.OrganizationalUnitIds).trim() === "") { contents[_OUI] = []; } else if (output[_OUI] != null && output[_OUI][_m] != null) { contents[_OUI] = de_OrganizationalUnitIdList(__getArrayIfSingleItem(output[_OUI][_m]), context); @@ -11061,7 +11061,7 @@ const de_StackSet = (output: any, context: __SerdeContext): StackSet => { if (output[_ME] != null) { contents[_ME] = de_ManagedExecution(output[_ME], context); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_m] != null) { contents[_Re] = de_RegionList(__getArrayIfSingleItem(output[_Re][_m]), context); @@ -11094,7 +11094,7 @@ const de_StackSetAutoDeploymentTargetSummary = ( if (output[_OUIr] != null) { contents[_OUIr] = __expectString(output[_OUIr]); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_m] != null) { contents[_Re] = de_RegionList(__getArrayIfSingleItem(output[_Re][_m]), context); @@ -11214,7 +11214,7 @@ const de_StackSetOperationPreferences = (output: any, context: __SerdeContext): if (output[_RCT] != null) { contents[_RCT] = __expectString(output[_RCT]); } - if (output.RegionOrder === "") { + if (String(output.RegionOrder).trim() === "") { contents[_RO] = []; } else if (output[_RO] != null && output[_RO][_m] != null) { contents[_RO] = de_RegionList(__getArrayIfSingleItem(output[_RO][_m]), context); @@ -11907,7 +11907,7 @@ const de_UpdateTerminationProtectionOutput = ( */ const de_ValidateTemplateOutput = (output: any, context: __SerdeContext): ValidateTemplateOutput => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_TemplateParameters(__getArrayIfSingleItem(output[_P][_m]), context); @@ -11915,7 +11915,7 @@ const de_ValidateTemplateOutput = (output: any, context: __SerdeContext): Valida if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.Capabilities === "") { + if (String(output.Capabilities).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_Capabilities(__getArrayIfSingleItem(output[_C][_m]), context); @@ -11923,7 +11923,7 @@ const de_ValidateTemplateOutput = (output: any, context: __SerdeContext): Valida if (output[_CR] != null) { contents[_CR] = __expectString(output[_CR]); } - if (output.DeclaredTransforms === "") { + if (String(output.DeclaredTransforms).trim() === "") { contents[_DTec] = []; } else if (output[_DTec] != null && output[_DTec][_m] != null) { contents[_DTec] = de_TransformsList(__getArrayIfSingleItem(output[_DTec][_m]), context); @@ -11939,7 +11939,7 @@ const de_WarningDetail = (output: any, context: __SerdeContext): WarningDetail = if (output[_T] != null) { contents[_T] = __expectString(output[_T]); } - if (output.Properties === "") { + if (String(output.Properties).trim() === "") { contents[_Pro] = []; } else if (output[_Pro] != null && output[_Pro][_m] != null) { contents[_Pro] = de_WarningProperties(__getArrayIfSingleItem(output[_Pro][_m]), context); @@ -11991,7 +11991,7 @@ const de_WarningProperty = (output: any, context: __SerdeContext): WarningProper */ const de_Warnings = (output: any, context: __SerdeContext): Warnings => { const contents: any = {}; - if (output.UnrecognizedResourceTypes === "") { + if (String(output.UnrecognizedResourceTypes).trim() === "") { contents[_URT] = []; } else if (output[_URT] != null && output[_URT][_m] != null) { contents[_URT] = de_ResourceTypes(__getArrayIfSingleItem(output[_URT][_m]), context); diff --git a/clients/client-cloudfront/src/protocols/Aws_restXml.ts b/clients/client-cloudfront/src/protocols/Aws_restXml.ts index 496f9abbb550..ec68961947de 100644 --- a/clients/client-cloudfront/src/protocols/Aws_restXml.ts +++ b/clients/client-cloudfront/src/protocols/Aws_restXml.ts @@ -5761,7 +5761,7 @@ export const de_ListConnectionGroupsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.ConnectionGroups === "") { + if (String(data.ConnectionGroups).trim() === "") { contents[_CG] = []; } else if (data[_CG] != null && data[_CG][_CGS] != null) { contents[_CG] = de_ConnectionGroupSummaryList(__getArrayIfSingleItem(data[_CG][_CGS]), context); @@ -5984,7 +5984,7 @@ export const de_ListDistributionTenantsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.DistributionTenantList === "") { + if (String(data.DistributionTenantList).trim() === "") { contents[_DTL] = []; } else if (data[_DTL] != null && data[_DTL][_DTS] != null) { contents[_DTL] = de_DistributionTenantList(__getArrayIfSingleItem(data[_DTL][_DTS]), context); @@ -6009,7 +6009,7 @@ export const de_ListDistributionTenantsByCustomizationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.DistributionTenantList === "") { + if (String(data.DistributionTenantList).trim() === "") { contents[_DTL] = []; } else if (data[_DTL] != null && data[_DTL][_DTS] != null) { contents[_DTL] = de_DistributionTenantList(__getArrayIfSingleItem(data[_DTL][_DTS]), context); @@ -6034,7 +6034,7 @@ export const de_ListDomainConflictsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.DomainConflicts === "") { + if (String(data.DomainConflicts).trim() === "") { contents[_DC] = []; } else if (data[_DC] != null && data[_DC][_DC] != null) { contents[_DC] = de_DomainConflictsList(__getArrayIfSingleItem(data[_DC][_DC]), context); @@ -6785,7 +6785,7 @@ export const de_VerifyDnsConfigurationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.DnsConfigurationList === "") { + if (String(data.DnsConfigurationList).trim() === "") { contents[_DCL] = []; } else if (data[_DCL] != null && data[_DCL][_DCn] != null) { contents[_DCL] = de_DnsConfigurationList(__getArrayIfSingleItem(data[_DCL][_DCn]), context); @@ -12650,7 +12650,7 @@ const de_ActiveTrustedKeyGroups = (output: any, context: __SerdeContext): Active if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KG] != null) { contents[_It] = de_KGKeyPairIdsList(__getArrayIfSingleItem(output[_It][_KG]), context); @@ -12669,7 +12669,7 @@ const de_ActiveTrustedSigners = (output: any, context: __SerdeContext): ActiveTr if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Si] != null) { contents[_It] = de_SignerList(__getArrayIfSingleItem(output[_It][_Si]), context); @@ -12685,7 +12685,7 @@ const de_Aliases = (output: any, context: __SerdeContext): Aliases => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CNAME] != null) { contents[_It] = de_AliasList(__getArrayIfSingleItem(output[_It][_CNAME]), context); @@ -12737,7 +12737,7 @@ const de_AllowedMethods = (output: any, context: __SerdeContext): AllowedMethods if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Met] != null) { contents[_It] = de_MethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); @@ -12765,7 +12765,7 @@ const de_AnycastIpList = (output: any, context: __SerdeContext): AnycastIpList = if (output[_Ar] != null) { contents[_Ar] = __expectString(output[_Ar]); } - if (output.AnycastIps === "") { + if (String(output.AnycastIps).trim() === "") { contents[_AI] = []; } else if (output[_AI] != null && output[_AI][_AIn] != null) { contents[_AI] = de_AnycastIps(__getArrayIfSingleItem(output[_AI][_AIn]), context); @@ -12784,7 +12784,7 @@ const de_AnycastIpList = (output: any, context: __SerdeContext): AnycastIpList = */ const de_AnycastIpListCollection = (output: any, context: __SerdeContext): AnycastIpListCollection => { const contents: any = {}; - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_AILS] != null) { contents[_It] = de_AnycastIpListSummaries(__getArrayIfSingleItem(output[_It][_AILS]), context); @@ -12953,7 +12953,7 @@ const de_CacheBehaviors = (output: any, context: __SerdeContext): CacheBehaviors if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CB] != null) { contents[_It] = de_CacheBehaviorList(__getArrayIfSingleItem(output[_It][_CB]), context); @@ -12969,7 +12969,7 @@ const de_CachedMethods = (output: any, context: __SerdeContext): CachedMethods = if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Met] != null) { contents[_It] = de_MethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); @@ -13062,7 +13062,7 @@ const de_CachePolicyList = (output: any, context: __SerdeContext): CachePolicyLi if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CPS] != null) { contents[_It] = de_CachePolicySummaryList(__getArrayIfSingleItem(output[_It][_CPS]), context); @@ -13177,7 +13177,7 @@ const de_CloudFrontOriginAccessIdentityList = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CFOAIS] != null) { contents[_It] = de_CloudFrontOriginAccessIdentitySummaryList(__getArrayIfSingleItem(output[_It][_CFOAIS]), context); @@ -13261,7 +13261,7 @@ const de_ConflictingAliasesList = (output: any, context: __SerdeContext): Confli if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CAon] != null) { contents[_It] = de_ConflictingAliases(__getArrayIfSingleItem(output[_It][_CAon]), context); @@ -13415,7 +13415,7 @@ const de_ContentTypeProfiles = (output: any, context: __SerdeContext): ContentTy if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CTP] != null) { contents[_It] = de_ContentTypeProfileList(__getArrayIfSingleItem(output[_It][_CTP]), context); @@ -13474,7 +13474,7 @@ const de_ContinuousDeploymentPolicyList = (output: any, context: __SerdeContext) if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CDPS] != null) { contents[_It] = de_ContinuousDeploymentPolicySummaryList(__getArrayIfSingleItem(output[_It][_CDPS]), context); @@ -13563,7 +13563,7 @@ const de_CookieNames = (output: any, context: __SerdeContext): CookieNames => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_N] != null) { contents[_It] = de_CookieNameList(__getArrayIfSingleItem(output[_It][_N]), context); @@ -13624,7 +13624,7 @@ const de_CustomErrorResponses = (output: any, context: __SerdeContext): CustomEr if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_CER] != null) { contents[_It] = de_CustomErrorResponseList(__getArrayIfSingleItem(output[_It][_CER]), context); @@ -13640,7 +13640,7 @@ const de_CustomHeaders = (output: any, context: __SerdeContext): CustomHeaders = if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_OCH] != null) { contents[_It] = de_OriginCustomHeadersList(__getArrayIfSingleItem(output[_It][_OCH]), context); @@ -13791,7 +13791,7 @@ const de_Distribution = (output: any, context: __SerdeContext): Distribution => if (output[_DCi] != null) { contents[_DCi] = de_DistributionConfig(output[_DCi], context); } - if (output.AliasICPRecordals === "") { + if (String(output.AliasICPRecordals).trim() === "") { contents[_AICPR] = []; } else if (output[_AICPR] != null && output[_AICPR][_AICPRl] != null) { contents[_AICPR] = de_AliasICPRecordals(__getArrayIfSingleItem(output[_AICPR][_AICPRl]), context); @@ -13893,7 +13893,7 @@ const de_DistributionIdList = (output: any, context: __SerdeContext): Distributi if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_DI] != null) { contents[_It] = de_DistributionIdListSummary(__getArrayIfSingleItem(output[_It][_DI]), context); @@ -13932,7 +13932,7 @@ const de_DistributionList = (output: any, context: __SerdeContext): Distribution if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_DS] != null) { contents[_It] = de_DistributionSummaryList(__getArrayIfSingleItem(output[_It][_DS]), context); @@ -14005,7 +14005,7 @@ const de_DistributionSummary = (output: any, context: __SerdeContext): Distribut if (output[_IIPVE] != null) { contents[_IIPVE] = __parseBoolean(output[_IIPVE]); } - if (output.AliasICPRecordals === "") { + if (String(output.AliasICPRecordals).trim() === "") { contents[_AICPR] = []; } else if (output[_AICPR] != null && output[_AICPR][_AICPRl] != null) { contents[_AICPR] = de_AliasICPRecordals(__getArrayIfSingleItem(output[_AICPR][_AICPRl]), context); @@ -14050,7 +14050,7 @@ const de_DistributionTenant = (output: any, context: __SerdeContext): Distributi if (output[_Ar] != null) { contents[_Ar] = __expectString(output[_Ar]); } - if (output.Domains === "") { + if (String(output.Domains).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_DomainResultList(__getArrayIfSingleItem(output[_D][_m]), context); @@ -14061,7 +14061,7 @@ const de_DistributionTenant = (output: any, context: __SerdeContext): Distributi if (output[_C] != null) { contents[_C] = de_Customizations(output[_C], context); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_P] = []; } else if (output[_P] != null && output[_P][_m] != null) { contents[_P] = de_Parameters(__getArrayIfSingleItem(output[_P][_m]), context); @@ -14112,7 +14112,7 @@ const de_DistributionTenantSummary = (output: any, context: __SerdeContext): Dis if (output[_Ar] != null) { contents[_Ar] = __expectString(output[_Ar]); } - if (output.Domains === "") { + if (String(output.Domains).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_DomainResultList(__getArrayIfSingleItem(output[_D][_m]), context); @@ -14233,7 +14233,7 @@ const de_EncryptionEntities = (output: any, context: __SerdeContext): Encryption if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_EEn] != null) { contents[_It] = de_EncryptionEntityList(__getArrayIfSingleItem(output[_It][_EEn]), context); @@ -14345,7 +14345,7 @@ const de_FieldLevelEncryptionList = (output: any, context: __SerdeContext): Fiel if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_FLES] != null) { contents[_It] = de_FieldLevelEncryptionSummaryList(__getArrayIfSingleItem(output[_It][_FLES]), context); @@ -14407,7 +14407,7 @@ const de_FieldLevelEncryptionProfileList = (output: any, context: __SerdeContext if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_FLEPS] != null) { contents[_It] = de_FieldLevelEncryptionProfileSummaryList(__getArrayIfSingleItem(output[_It][_FLEPS]), context); @@ -14519,7 +14519,7 @@ const de_FieldPatterns = (output: any, context: __SerdeContext): FieldPatterns = if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_FPi] != null) { contents[_It] = de_FieldPatternList(__getArrayIfSingleItem(output[_It][_FPi]), context); @@ -14580,7 +14580,7 @@ const de_FunctionAssociations = (output: any, context: __SerdeContext): Function if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_FAu] != null) { contents[_It] = de_FunctionAssociationList(__getArrayIfSingleItem(output[_It][_FAu]), context); @@ -14630,7 +14630,7 @@ const de_FunctionList = (output: any, context: __SerdeContext): FunctionList => if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_FSu] != null) { contents[_It] = de_FunctionSummaryList(__getArrayIfSingleItem(output[_It][_FSu]), context); @@ -14700,7 +14700,7 @@ const de_GeoRestriction = (output: any, context: __SerdeContext): GeoRestriction if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_L] != null) { contents[_It] = de_LocationList(__getArrayIfSingleItem(output[_It][_L]), context); @@ -14716,7 +14716,7 @@ const de_GeoRestrictionCustomization = (output: any, context: __SerdeContext): G if (output[_RT] != null) { contents[_RT] = __expectString(output[_RT]); } - if (output.Locations === "") { + if (String(output.Locations).trim() === "") { contents[_Loc] = []; } else if (output[_Loc] != null && output[_Loc][_L] != null) { contents[_Loc] = de_LocationList(__getArrayIfSingleItem(output[_Loc][_L]), context); @@ -14754,7 +14754,7 @@ const de_Headers = (output: any, context: __SerdeContext): Headers => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_N] != null) { contents[_It] = de_HeaderList(__getArrayIfSingleItem(output[_It][_N]), context); @@ -14816,7 +14816,7 @@ const de_InvalidationList = (output: any, context: __SerdeContext): Invalidation if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_ISnv] != null) { contents[_It] = de_InvalidationSummaryList(__getArrayIfSingleItem(output[_It][_ISnv]), context); @@ -14877,7 +14877,7 @@ const de_KeyGroupConfig = (output: any, context: __SerdeContext): KeyGroupConfig if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_PK] != null) { contents[_It] = de_PublicKeyIdList(__getArrayIfSingleItem(output[_It][_PK]), context); @@ -14902,7 +14902,7 @@ const de_KeyGroupList = (output: any, context: __SerdeContext): KeyGroupList => if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KGS] != null) { contents[_It] = de_KeyGroupSummaryList(__getArrayIfSingleItem(output[_It][_KGS]), context); @@ -14951,7 +14951,7 @@ const de_KeyPairIds = (output: any, context: __SerdeContext): KeyPairIds => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KPI] != null) { contents[_It] = de_KeyPairIdList(__getArrayIfSingleItem(output[_It][_KPI]), context); @@ -15015,7 +15015,7 @@ const de_KeyValueStoreAssociations = (output: any, context: __SerdeContext): Key if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KVSAe] != null) { contents[_It] = de_KeyValueStoreAssociationList(__getArrayIfSingleItem(output[_It][_KVSAe]), context); @@ -15037,7 +15037,7 @@ const de_KeyValueStoreList = (output: any, context: __SerdeContext): KeyValueSto if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KVS] != null) { contents[_It] = de_KeyValueStoreSummaryList(__getArrayIfSingleItem(output[_It][_KVS]), context); @@ -15131,7 +15131,7 @@ const de_LambdaFunctionAssociations = (output: any, context: __SerdeContext): La if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_LFAa] != null) { contents[_It] = de_LambdaFunctionAssociationList(__getArrayIfSingleItem(output[_It][_LFAa]), context); @@ -15184,7 +15184,7 @@ const de_ManagedCertificateDetails = (output: any, context: __SerdeContext): Man if (output[_VTH] != null) { contents[_VTH] = __expectString(output[_VTH]); } - if (output.ValidationTokenDetails === "") { + if (String(output.ValidationTokenDetails).trim() === "") { contents[_VTD] = []; } else if (output[_VTD] != null && output[_VTD][_m] != null) { contents[_VTD] = de_ValidationTokenDetailList(__getArrayIfSingleItem(output[_VTD][_m]), context); @@ -15315,7 +15315,7 @@ const de_OriginAccessControlList = (output: any, context: __SerdeContext): Origi if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_OACS] != null) { contents[_It] = de_OriginAccessControlSummaryList(__getArrayIfSingleItem(output[_It][_OACS]), context); @@ -15457,7 +15457,7 @@ const de_OriginGroupMembers = (output: any, context: __SerdeContext): OriginGrou if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_OGM] != null) { contents[_It] = de_OriginGroupMemberList(__getArrayIfSingleItem(output[_It][_OGM]), context); @@ -15473,7 +15473,7 @@ const de_OriginGroups = (output: any, context: __SerdeContext): OriginGroups => if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_OGr] != null) { contents[_It] = de_OriginGroupList(__getArrayIfSingleItem(output[_It][_OGr]), context); @@ -15580,7 +15580,7 @@ const de_OriginRequestPolicyList = (output: any, context: __SerdeContext): Origi if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_ORPS] != null) { contents[_It] = de_OriginRequestPolicySummaryList(__getArrayIfSingleItem(output[_It][_ORPS]), context); @@ -15638,7 +15638,7 @@ const de_Origins = (output: any, context: __SerdeContext): Origins => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Or] != null) { contents[_It] = de_OriginList(__getArrayIfSingleItem(output[_It][_Or]), context); @@ -15668,7 +15668,7 @@ const de_OriginSslProtocols = (output: any, context: __SerdeContext): OriginSslP if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_SPs] != null) { contents[_It] = de_SslProtocolsList(__getArrayIfSingleItem(output[_It][_SPs]), context); @@ -15782,7 +15782,7 @@ const de_Paths = (output: any, context: __SerdeContext): Paths => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Pat] != null) { contents[_It] = de_PathList(__getArrayIfSingleItem(output[_It][_Pat]), context); @@ -15852,7 +15852,7 @@ const de_PublicKeyList = (output: any, context: __SerdeContext): PublicKeyList = if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_PKS] != null) { contents[_It] = de_PublicKeySummaryList(__getArrayIfSingleItem(output[_It][_PKS]), context); @@ -15941,7 +15941,7 @@ const de_QueryArgProfiles = (output: any, context: __SerdeContext): QueryArgProf if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_QAP] != null) { contents[_It] = de_QueryArgProfileList(__getArrayIfSingleItem(output[_It][_QAP]), context); @@ -15957,7 +15957,7 @@ const de_QueryStringCacheKeys = (output: any, context: __SerdeContext): QueryStr if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_N] != null) { contents[_It] = de_QueryStringCacheKeysList(__getArrayIfSingleItem(output[_It][_N]), context); @@ -15984,7 +15984,7 @@ const de_QueryStringNames = (output: any, context: __SerdeContext): QueryStringN if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_N] != null) { contents[_It] = de_QueryStringNamesList(__getArrayIfSingleItem(output[_It][_N]), context); @@ -16017,12 +16017,12 @@ const de_RealtimeLogConfig = (output: any, context: __SerdeContext): RealtimeLog if (output[_SR] != null) { contents[_SR] = __strictParseLong(output[_SR]) as number; } - if (output.EndPoints === "") { + if (String(output.EndPoints).trim() === "") { contents[_EP] = []; } else if (output[_EP] != null && output[_EP][_m] != null) { contents[_EP] = de_EndPointList(__getArrayIfSingleItem(output[_EP][_m]), context); } - if (output.Fields === "") { + if (String(output.Fields).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_Fi] != null) { contents[_F] = de_FieldList(__getArrayIfSingleItem(output[_F][_Fi]), context); @@ -16049,7 +16049,7 @@ const de_RealtimeLogConfigs = (output: any, context: __SerdeContext): RealtimeLo if (output[_MI] != null) { contents[_MI] = __strictParseInt32(output[_MI]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_m] != null) { contents[_It] = de_RealtimeLogConfigList(__getArrayIfSingleItem(output[_It][_m]), context); @@ -16108,7 +16108,7 @@ const de_ResponseHeadersPolicyAccessControlAllowHeaders = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_H] != null) { contents[_It] = de_AccessControlAllowHeadersList(__getArrayIfSingleItem(output[_It][_H]), context); @@ -16127,7 +16127,7 @@ const de_ResponseHeadersPolicyAccessControlAllowMethods = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Met] != null) { contents[_It] = de_AccessControlAllowMethodsList(__getArrayIfSingleItem(output[_It][_Met]), context); @@ -16146,7 +16146,7 @@ const de_ResponseHeadersPolicyAccessControlAllowOrigins = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Or] != null) { contents[_It] = de_AccessControlAllowOriginsList(__getArrayIfSingleItem(output[_It][_Or]), context); @@ -16165,7 +16165,7 @@ const de_ResponseHeadersPolicyAccessControlExposeHeaders = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_H] != null) { contents[_It] = de_AccessControlExposeHeadersList(__getArrayIfSingleItem(output[_It][_H]), context); @@ -16307,7 +16307,7 @@ const de_ResponseHeadersPolicyCustomHeadersConfig = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_RHPCH] != null) { contents[_It] = de_ResponseHeadersPolicyCustomHeaderList(__getArrayIfSingleItem(output[_It][_RHPCH]), context); @@ -16346,7 +16346,7 @@ const de_ResponseHeadersPolicyList = (output: any, context: __SerdeContext): Res if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_RHPS] != null) { contents[_It] = de_ResponseHeadersPolicySummaryList(__getArrayIfSingleItem(output[_It][_RHPS]), context); @@ -16410,7 +16410,7 @@ const de_ResponseHeadersPolicyRemoveHeadersConfig = ( if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_RHPRH] != null) { contents[_It] = de_ResponseHeadersPolicyRemoveHeaderList(__getArrayIfSingleItem(output[_It][_RHPRH]), context); @@ -16643,7 +16643,7 @@ const de_StagingDistributionDnsNames = (output: any, context: __SerdeContext): S if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_DNn] != null) { contents[_It] = de_StagingDistributionDnsNameList(__getArrayIfSingleItem(output[_It][_DNn]), context); @@ -16670,7 +16670,7 @@ const de_StatusCodes = (output: any, context: __SerdeContext): StatusCodes => { if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_SCta] != null) { contents[_It] = de_StatusCodeList(__getArrayIfSingleItem(output[_It][_SCta]), context); @@ -16759,7 +16759,7 @@ const de_StreamingDistributionList = (output: any, context: __SerdeContext): Str if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_SDS] != null) { contents[_It] = de_StreamingDistributionSummaryList(__getArrayIfSingleItem(output[_It][_SDS]), context); @@ -16883,7 +16883,7 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_Tags = (output: any, context: __SerdeContext): Tags => { const contents: any = {}; - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_Ta] != null) { contents[_It] = de_TagList(__getArrayIfSingleItem(output[_It][_Ta]), context); @@ -16896,7 +16896,7 @@ const de_Tags = (output: any, context: __SerdeContext): Tags => { */ const de_TenantConfig = (output: any, context: __SerdeContext): TenantConfig => { const contents: any = {}; - if (output.ParameterDefinitions === "") { + if (String(output.ParameterDefinitions).trim() === "") { contents[_PDa] = []; } else if (output[_PDa] != null && output[_PDa][_m] != null) { contents[_PDa] = de_ParameterDefinitions(__getArrayIfSingleItem(output[_PDa][_m]), context); @@ -16915,7 +16915,7 @@ const de_TestResult = (output: any, context: __SerdeContext): TestResult => { if (output[_CU] != null) { contents[_CU] = __expectString(output[_CU]); } - if (output.FunctionExecutionLogs === "") { + if (String(output.FunctionExecutionLogs).trim() === "") { contents[_FEL] = []; } else if (output[_FEL] != null && output[_FEL][_m] != null) { contents[_FEL] = de_FunctionExecutionLogList(__getArrayIfSingleItem(output[_FEL][_m]), context); @@ -16968,7 +16968,7 @@ const de_TrustedKeyGroups = (output: any, context: __SerdeContext): TrustedKeyGr if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_KG] != null) { contents[_It] = de_TrustedKeyGroupIdList(__getArrayIfSingleItem(output[_It][_KG]), context); @@ -16987,7 +16987,7 @@ const de_TrustedSigners = (output: any, context: __SerdeContext): TrustedSigners if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_AAN] != null) { contents[_It] = de_AwsAccountNumberList(__getArrayIfSingleItem(output[_It][_AAN]), context); @@ -17141,7 +17141,7 @@ const de_VpcOriginList = (output: any, context: __SerdeContext): VpcOriginList = if (output[_Q] != null) { contents[_Q] = __strictParseInt32(output[_Q]) as number; } - if (output.Items === "") { + if (String(output.Items).trim() === "") { contents[_It] = []; } else if (output[_It] != null && output[_It][_VOS] != null) { contents[_It] = de_VpcOriginSummaryList(__getArrayIfSingleItem(output[_It][_VOS]), context); diff --git a/clients/client-cloudsearch/src/protocols/Aws_query.ts b/clients/client-cloudsearch/src/protocols/Aws_query.ts index 3f72b13841c0..d4938d1be6ef 100644 --- a/clients/client-cloudsearch/src/protocols/Aws_query.ts +++ b/clients/client-cloudsearch/src/protocols/Aws_query.ts @@ -2369,7 +2369,7 @@ const de_BaseException = (output: any, context: __SerdeContext): BaseException = */ const de_BuildSuggestersResponse = (output: any, context: __SerdeContext): BuildSuggestersResponse => { const contents: any = {}; - if (output.FieldNames === "") { + if (String(output.FieldNames).trim() === "") { contents[_FN] = []; } else if (output[_FN] != null && output[_FN][_m] != null) { contents[_FN] = de_FieldNameList(__getArrayIfSingleItem(output[_FN][_m]), context); @@ -2541,7 +2541,7 @@ const de_DeleteSuggesterResponse = (output: any, context: __SerdeContext): Delet */ const de_DescribeAnalysisSchemesResponse = (output: any, context: __SerdeContext): DescribeAnalysisSchemesResponse => { const contents: any = {}; - if (output.AnalysisSchemes === "") { + if (String(output.AnalysisSchemes).trim() === "") { contents[_ASna] = []; } else if (output[_ASna] != null && output[_ASna][_m] != null) { contents[_ASna] = de_AnalysisSchemeStatusList(__getArrayIfSingleItem(output[_ASna][_m]), context); @@ -2582,7 +2582,7 @@ const de_DescribeDomainEndpointOptionsResponse = ( */ const de_DescribeDomainsResponse = (output: any, context: __SerdeContext): DescribeDomainsResponse => { const contents: any = {}; - if (output.DomainStatusList === "") { + if (String(output.DomainStatusList).trim() === "") { contents[_DSL] = []; } else if (output[_DSL] != null && output[_DSL][_m] != null) { contents[_DSL] = de_DomainStatusList(__getArrayIfSingleItem(output[_DSL][_m]), context); @@ -2595,7 +2595,7 @@ const de_DescribeDomainsResponse = (output: any, context: __SerdeContext): Descr */ const de_DescribeExpressionsResponse = (output: any, context: __SerdeContext): DescribeExpressionsResponse => { const contents: any = {}; - if (output.Expressions === "") { + if (String(output.Expressions).trim() === "") { contents[_Ex] = []; } else if (output[_Ex] != null && output[_Ex][_m] != null) { contents[_Ex] = de_ExpressionStatusList(__getArrayIfSingleItem(output[_Ex][_m]), context); @@ -2608,7 +2608,7 @@ const de_DescribeExpressionsResponse = (output: any, context: __SerdeContext): D */ const de_DescribeIndexFieldsResponse = (output: any, context: __SerdeContext): DescribeIndexFieldsResponse => { const contents: any = {}; - if (output.IndexFields === "") { + if (String(output.IndexFields).trim() === "") { contents[_IFn] = []; } else if (output[_IFn] != null && output[_IFn][_m] != null) { contents[_IFn] = de_IndexFieldStatusList(__getArrayIfSingleItem(output[_IFn][_m]), context); @@ -2649,7 +2649,7 @@ const de_DescribeServiceAccessPoliciesResponse = ( */ const de_DescribeSuggestersResponse = (output: any, context: __SerdeContext): DescribeSuggestersResponse => { const contents: any = {}; - if (output.Suggesters === "") { + if (String(output.Suggesters).trim() === "") { contents[_Sug] = []; } else if (output[_Sug] != null && output[_Sug][_m] != null) { contents[_Sug] = de_SuggesterStatusList(__getArrayIfSingleItem(output[_Sug][_m]), context); @@ -2891,7 +2891,7 @@ const de_FieldNameList = (output: any, context: __SerdeContext): string[] => { */ const de_IndexDocumentsResponse = (output: any, context: __SerdeContext): IndexDocumentsResponse => { const contents: any = {}; - if (output.FieldNames === "") { + if (String(output.FieldNames).trim() === "") { contents[_FN] = []; } else if (output[_FN] != null && output[_FN][_m] != null) { contents[_FN] = de_FieldNameList(__getArrayIfSingleItem(output[_FN][_m]), context); @@ -3107,7 +3107,7 @@ const de_Limits = (output: any, context: __SerdeContext): Limits => { */ const de_ListDomainNamesResponse = (output: any, context: __SerdeContext): ListDomainNamesResponse => { const contents: any = {}; - if (output.DomainNames === "") { + if (String(output.DomainNames).trim() === "") { contents[_DNo] = {}; } else if (output[_DNo] != null && output[_DNo][_e] != null) { contents[_DNo] = de_DomainNameMap(__getArrayIfSingleItem(output[_DNo][_e]), context); diff --git a/clients/client-cloudwatch/src/protocols/Aws_query.ts b/clients/client-cloudwatch/src/protocols/Aws_query.ts index abbc49b0d18e..6a3a9ac6d4df 100644 --- a/clients/client-cloudwatch/src/protocols/Aws_query.ts +++ b/clients/client-cloudwatch/src/protocols/Aws_query.ts @@ -3978,7 +3978,7 @@ const de_AlarmContributor = (output: any, context: __SerdeContext): AlarmContrib if (output[_CI] != null) { contents[_CI] = __expectString(output[_CI]); } - if (output.ContributorAttributes === "") { + if (String(output.ContributorAttributes).trim() === "") { contents[_CA] = {}; } else if (output[_CA] != null && output[_CA][_e] != null) { contents[_CA] = de_ContributorAttributes(__getArrayIfSingleItem(output[_CA][_e]), context); @@ -4029,7 +4029,7 @@ const de_AlarmHistoryItem = (output: any, context: __SerdeContext): AlarmHistory if (output[_HD] != null) { contents[_HD] = __expectString(output[_HD]); } - if (output.AlarmContributorAttributes === "") { + if (String(output.AlarmContributorAttributes).trim() === "") { contents[_ACA] = {}; } else if (output[_ACA] != null && output[_ACA][_e] != null) { contents[_ACA] = de_ContributorAttributes(__getArrayIfSingleItem(output[_ACA][_e]), context); @@ -4059,7 +4059,7 @@ const de_AnomalyDetector = (output: any, context: __SerdeContext): AnomalyDetect if (output[_MN] != null) { contents[_MN] = __expectString(output[_MN]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); @@ -4090,7 +4090,7 @@ const de_AnomalyDetector = (output: any, context: __SerdeContext): AnomalyDetect */ const de_AnomalyDetectorConfiguration = (output: any, context: __SerdeContext): AnomalyDetectorConfiguration => { const contents: any = {}; - if (output.ExcludedTimeRanges === "") { + if (String(output.ExcludedTimeRanges).trim() === "") { contents[_ETR] = []; } else if (output[_ETR] != null && output[_ETR][_m] != null) { contents[_ETR] = de_AnomalyDetectorExcludedTimeRanges(__getArrayIfSingleItem(output[_ETR][_m]), context); @@ -4142,7 +4142,7 @@ const de_CompositeAlarm = (output: any, context: __SerdeContext): CompositeAlarm if (output[_AE] != null) { contents[_AE] = __parseBoolean(output[_AE]); } - if (output.AlarmActions === "") { + if (String(output.AlarmActions).trim() === "") { contents[_AA] = []; } else if (output[_AA] != null && output[_AA][_m] != null) { contents[_AA] = de_ResourceList(__getArrayIfSingleItem(output[_AA][_m]), context); @@ -4162,12 +4162,12 @@ const de_CompositeAlarm = (output: any, context: __SerdeContext): CompositeAlarm if (output[_AR] != null) { contents[_AR] = __expectString(output[_AR]); } - if (output.InsufficientDataActions === "") { + if (String(output.InsufficientDataActions).trim() === "") { contents[_IDA] = []; } else if (output[_IDA] != null && output[_IDA][_m] != null) { contents[_IDA] = de_ResourceList(__getArrayIfSingleItem(output[_IDA][_m]), context); } - if (output.OKActions === "") { + if (String(output.OKActions).trim() === "") { contents[_OKA] = []; } else if (output[_OKA] != null && output[_OKA][_m] != null) { contents[_OKA] = de_ResourceList(__getArrayIfSingleItem(output[_OKA][_m]), context); @@ -4290,7 +4290,7 @@ const de_DashboardInvalidInputError = (output: any, context: __SerdeContext): Da if (output[_me] != null) { contents[_me] = __expectString(output[_me]); } - if (output.dashboardValidationMessages === "") { + if (String(output.dashboardValidationMessages).trim() === "") { contents[_dVM] = []; } else if (output[_dVM] != null && output[_dVM][_m] != null) { contents[_dVM] = de_DashboardValidationMessages(__getArrayIfSingleItem(output[_dVM][_m]), context); @@ -4349,7 +4349,7 @@ const de_Datapoint = (output: any, context: __SerdeContext): Datapoint => { if (output[_U] != null) { contents[_U] = __expectString(output[_U]); } - if (output.ExtendedStatistics === "") { + if (String(output.ExtendedStatistics).trim() === "") { contents[_ESx] = {}; } else if (output[_ESx] != null && output[_ESx][_e] != null) { contents[_ESx] = de_DatapointValueMap(__getArrayIfSingleItem(output[_ESx][_e]), context); @@ -4413,7 +4413,7 @@ const de_DeleteDashboardsOutput = (output: any, context: __SerdeContext): Delete */ const de_DeleteInsightRulesOutput = (output: any, context: __SerdeContext): DeleteInsightRulesOutput => { const contents: any = {}; - if (output.Failures === "") { + if (String(output.Failures).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_m] != null) { contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); @@ -4434,7 +4434,7 @@ const de_DeleteMetricStreamOutput = (output: any, context: __SerdeContext): Dele */ const de_DescribeAlarmContributorsOutput = (output: any, context: __SerdeContext): DescribeAlarmContributorsOutput => { const contents: any = {}; - if (output.AlarmContributors === "") { + if (String(output.AlarmContributors).trim() === "") { contents[_AC] = []; } else if (output[_AC] != null && output[_AC][_m] != null) { contents[_AC] = de_AlarmContributors(__getArrayIfSingleItem(output[_AC][_m]), context); @@ -4450,7 +4450,7 @@ const de_DescribeAlarmContributorsOutput = (output: any, context: __SerdeContext */ const de_DescribeAlarmHistoryOutput = (output: any, context: __SerdeContext): DescribeAlarmHistoryOutput => { const contents: any = {}; - if (output.AlarmHistoryItems === "") { + if (String(output.AlarmHistoryItems).trim() === "") { contents[_AHI] = []; } else if (output[_AHI] != null && output[_AHI][_m] != null) { contents[_AHI] = de_AlarmHistoryItems(__getArrayIfSingleItem(output[_AHI][_m]), context); @@ -4466,7 +4466,7 @@ const de_DescribeAlarmHistoryOutput = (output: any, context: __SerdeContext): De */ const de_DescribeAlarmsForMetricOutput = (output: any, context: __SerdeContext): DescribeAlarmsForMetricOutput => { const contents: any = {}; - if (output.MetricAlarms === "") { + if (String(output.MetricAlarms).trim() === "") { contents[_MA] = []; } else if (output[_MA] != null && output[_MA][_m] != null) { contents[_MA] = de_MetricAlarms(__getArrayIfSingleItem(output[_MA][_m]), context); @@ -4479,12 +4479,12 @@ const de_DescribeAlarmsForMetricOutput = (output: any, context: __SerdeContext): */ const de_DescribeAlarmsOutput = (output: any, context: __SerdeContext): DescribeAlarmsOutput => { const contents: any = {}; - if (output.CompositeAlarms === "") { + if (String(output.CompositeAlarms).trim() === "") { contents[_CAo] = []; } else if (output[_CAo] != null && output[_CAo][_m] != null) { contents[_CAo] = de_CompositeAlarms(__getArrayIfSingleItem(output[_CAo][_m]), context); } - if (output.MetricAlarms === "") { + if (String(output.MetricAlarms).trim() === "") { contents[_MA] = []; } else if (output[_MA] != null && output[_MA][_m] != null) { contents[_MA] = de_MetricAlarms(__getArrayIfSingleItem(output[_MA][_m]), context); @@ -4500,7 +4500,7 @@ const de_DescribeAlarmsOutput = (output: any, context: __SerdeContext): Describe */ const de_DescribeAnomalyDetectorsOutput = (output: any, context: __SerdeContext): DescribeAnomalyDetectorsOutput => { const contents: any = {}; - if (output.AnomalyDetectors === "") { + if (String(output.AnomalyDetectors).trim() === "") { contents[_ADn] = []; } else if (output[_ADn] != null && output[_ADn][_m] != null) { contents[_ADn] = de_AnomalyDetectors(__getArrayIfSingleItem(output[_ADn][_m]), context); @@ -4519,7 +4519,7 @@ const de_DescribeInsightRulesOutput = (output: any, context: __SerdeContext): De if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.InsightRules === "") { + if (String(output.InsightRules).trim() === "") { contents[_IR] = []; } else if (output[_IR] != null && output[_IR][_m] != null) { contents[_IR] = de_InsightRules(__getArrayIfSingleItem(output[_IR][_m]), context); @@ -4557,7 +4557,7 @@ const de_Dimensions = (output: any, context: __SerdeContext): Dimension[] => { */ const de_DisableInsightRulesOutput = (output: any, context: __SerdeContext): DisableInsightRulesOutput => { const contents: any = {}; - if (output.Failures === "") { + if (String(output.Failures).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_m] != null) { contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); @@ -4570,7 +4570,7 @@ const de_DisableInsightRulesOutput = (output: any, context: __SerdeContext): Dis */ const de_EnableInsightRulesOutput = (output: any, context: __SerdeContext): EnableInsightRulesOutput => { const contents: any = {}; - if (output.Failures === "") { + if (String(output.Failures).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_m] != null) { contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); @@ -4600,7 +4600,7 @@ const de_GetDashboardOutput = (output: any, context: __SerdeContext): GetDashboa */ const de_GetInsightRuleReportOutput = (output: any, context: __SerdeContext): GetInsightRuleReportOutput => { const contents: any = {}; - if (output.KeyLabels === "") { + if (String(output.KeyLabels).trim() === "") { contents[_KL] = []; } else if (output[_KL] != null && output[_KL][_m] != null) { contents[_KL] = de_InsightRuleContributorKeyLabels(__getArrayIfSingleItem(output[_KL][_m]), context); @@ -4614,12 +4614,12 @@ const de_GetInsightRuleReportOutput = (output: any, context: __SerdeContext): Ge if (output[_AUC] != null) { contents[_AUC] = __strictParseLong(output[_AUC]) as number; } - if (output.Contributors === "") { + if (String(output.Contributors).trim() === "") { contents[_Con] = []; } else if (output[_Con] != null && output[_Con][_m] != null) { contents[_Con] = de_InsightRuleContributors(__getArrayIfSingleItem(output[_Con][_m]), context); } - if (output.MetricDatapoints === "") { + if (String(output.MetricDatapoints).trim() === "") { contents[_MDe] = []; } else if (output[_MDe] != null && output[_MDe][_m] != null) { contents[_MDe] = de_InsightRuleMetricDatapoints(__getArrayIfSingleItem(output[_MDe][_m]), context); @@ -4632,7 +4632,7 @@ const de_GetInsightRuleReportOutput = (output: any, context: __SerdeContext): Ge */ const de_GetMetricDataOutput = (output: any, context: __SerdeContext): GetMetricDataOutput => { const contents: any = {}; - if (output.MetricDataResults === "") { + if (String(output.MetricDataResults).trim() === "") { contents[_MDR] = []; } else if (output[_MDR] != null && output[_MDR][_m] != null) { contents[_MDR] = de_MetricDataResults(__getArrayIfSingleItem(output[_MDR][_m]), context); @@ -4640,7 +4640,7 @@ const de_GetMetricDataOutput = (output: any, context: __SerdeContext): GetMetric if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.Messages === "") { + if (String(output.Messages).trim() === "") { contents[_Mess] = []; } else if (output[_Mess] != null && output[_Mess][_m] != null) { contents[_Mess] = de_MetricDataResultMessages(__getArrayIfSingleItem(output[_Mess][_m]), context); @@ -4656,7 +4656,7 @@ const de_GetMetricStatisticsOutput = (output: any, context: __SerdeContext): Get if (output[_L] != null) { contents[_L] = __expectString(output[_L]); } - if (output.Datapoints === "") { + if (String(output.Datapoints).trim() === "") { contents[_Da] = []; } else if (output[_Da] != null && output[_Da][_m] != null) { contents[_Da] = de_Datapoints(__getArrayIfSingleItem(output[_Da][_m]), context); @@ -4675,12 +4675,12 @@ const de_GetMetricStreamOutput = (output: any, context: __SerdeContext): GetMetr if (output[_Na] != null) { contents[_Na] = __expectString(output[_Na]); } - if (output.IncludeFilters === "") { + if (String(output.IncludeFilters).trim() === "") { contents[_IF] = []; } else if (output[_IF] != null && output[_IF][_m] != null) { contents[_IF] = de_MetricStreamFilters(__getArrayIfSingleItem(output[_IF][_m]), context); } - if (output.ExcludeFilters === "") { + if (String(output.ExcludeFilters).trim() === "") { contents[_EF] = []; } else if (output[_EF] != null && output[_EF][_m] != null) { contents[_EF] = de_MetricStreamFilters(__getArrayIfSingleItem(output[_EF][_m]), context); @@ -4703,7 +4703,7 @@ const de_GetMetricStreamOutput = (output: any, context: __SerdeContext): GetMetr if (output[_OF] != null) { contents[_OF] = __expectString(output[_OF]); } - if (output.StatisticsConfigurations === "") { + if (String(output.StatisticsConfigurations).trim() === "") { contents[_SC] = []; } else if (output[_SC] != null && output[_SC][_m] != null) { contents[_SC] = de_MetricStreamStatisticsConfigurations(__getArrayIfSingleItem(output[_SC][_m]), context); @@ -4756,7 +4756,7 @@ const de_InsightRule = (output: any, context: __SerdeContext): InsightRule => { */ const de_InsightRuleContributor = (output: any, context: __SerdeContext): InsightRuleContributor => { const contents: any = {}; - if (output.Keys === "") { + if (String(output.Keys).trim() === "") { contents[_Ke] = []; } else if (output[_Ke] != null && output[_Ke][_m] != null) { contents[_Ke] = de_InsightRuleContributorKeys(__getArrayIfSingleItem(output[_Ke][_m]), context); @@ -4764,7 +4764,7 @@ const de_InsightRuleContributor = (output: any, context: __SerdeContext): Insigh if (output[_AAV] != null) { contents[_AAV] = __strictParseFloat(output[_AAV]) as number; } - if (output.Datapoints === "") { + if (String(output.Datapoints).trim() === "") { contents[_Da] = []; } else if (output[_Da] != null && output[_Da][_m] != null) { contents[_Da] = de_InsightRuleContributorDatapoints(__getArrayIfSingleItem(output[_Da][_m]), context); @@ -4972,7 +4972,7 @@ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExcee */ const de_ListDashboardsOutput = (output: any, context: __SerdeContext): ListDashboardsOutput => { const contents: any = {}; - if (output.DashboardEntries === "") { + if (String(output.DashboardEntries).trim() === "") { contents[_DE] = []; } else if (output[_DE] != null && output[_DE][_m] != null) { contents[_DE] = de_DashboardEntries(__getArrayIfSingleItem(output[_DE][_m]), context); @@ -4988,7 +4988,7 @@ const de_ListDashboardsOutput = (output: any, context: __SerdeContext): ListDash */ const de_ListManagedInsightRulesOutput = (output: any, context: __SerdeContext): ListManagedInsightRulesOutput => { const contents: any = {}; - if (output.ManagedRules === "") { + if (String(output.ManagedRules).trim() === "") { contents[_MRan] = []; } else if (output[_MRan] != null && output[_MRan][_m] != null) { contents[_MRan] = de_ManagedRuleDescriptions(__getArrayIfSingleItem(output[_MRan][_m]), context); @@ -5004,7 +5004,7 @@ const de_ListManagedInsightRulesOutput = (output: any, context: __SerdeContext): */ const de_ListMetricsOutput = (output: any, context: __SerdeContext): ListMetricsOutput => { const contents: any = {}; - if (output.Metrics === "") { + if (String(output.Metrics).trim() === "") { contents[_M] = []; } else if (output[_M] != null && output[_M][_m] != null) { contents[_M] = de_Metrics(__getArrayIfSingleItem(output[_M][_m]), context); @@ -5012,7 +5012,7 @@ const de_ListMetricsOutput = (output: any, context: __SerdeContext): ListMetrics if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.OwningAccounts === "") { + if (String(output.OwningAccounts).trim() === "") { contents[_OAw] = []; } else if (output[_OAw] != null && output[_OAw][_m] != null) { contents[_OAw] = de_OwningAccounts(__getArrayIfSingleItem(output[_OAw][_m]), context); @@ -5028,7 +5028,7 @@ const de_ListMetricStreamsOutput = (output: any, context: __SerdeContext): ListM if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.Entries === "") { + if (String(output.Entries).trim() === "") { contents[_En] = []; } else if (output[_En] != null && output[_En][_m] != null) { contents[_En] = de_MetricStreamEntries(__getArrayIfSingleItem(output[_En][_m]), context); @@ -5041,7 +5041,7 @@ const de_ListMetricStreamsOutput = (output: any, context: __SerdeContext): ListM */ const de_ListTagsForResourceOutput = (output: any, context: __SerdeContext): ListTagsForResourceOutput => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_m] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_m]), context); @@ -5116,7 +5116,7 @@ const de_Metric = (output: any, context: __SerdeContext): Metric => { if (output[_MN] != null) { contents[_MN] = __expectString(output[_MN]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); @@ -5144,17 +5144,17 @@ const de_MetricAlarm = (output: any, context: __SerdeContext): MetricAlarm => { if (output[_AE] != null) { contents[_AE] = __parseBoolean(output[_AE]); } - if (output.OKActions === "") { + if (String(output.OKActions).trim() === "") { contents[_OKA] = []; } else if (output[_OKA] != null && output[_OKA][_m] != null) { contents[_OKA] = de_ResourceList(__getArrayIfSingleItem(output[_OKA][_m]), context); } - if (output.AlarmActions === "") { + if (String(output.AlarmActions).trim() === "") { contents[_AA] = []; } else if (output[_AA] != null && output[_AA][_m] != null) { contents[_AA] = de_ResourceList(__getArrayIfSingleItem(output[_AA][_m]), context); } - if (output.InsufficientDataActions === "") { + if (String(output.InsufficientDataActions).trim() === "") { contents[_IDA] = []; } else if (output[_IDA] != null && output[_IDA][_m] != null) { contents[_IDA] = de_ResourceList(__getArrayIfSingleItem(output[_IDA][_m]), context); @@ -5183,7 +5183,7 @@ const de_MetricAlarm = (output: any, context: __SerdeContext): MetricAlarm => { if (output[_ES] != null) { contents[_ES] = __expectString(output[_ES]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); @@ -5212,7 +5212,7 @@ const de_MetricAlarm = (output: any, context: __SerdeContext): MetricAlarm => { if (output[_ELSCP] != null) { contents[_ELSCP] = __expectString(output[_ELSCP]); } - if (output.Metrics === "") { + if (String(output.Metrics).trim() === "") { contents[_M] = []; } else if (output[_M] != null && output[_M][_m] != null) { contents[_M] = de_MetricDataQueries(__getArrayIfSingleItem(output[_M][_m]), context); @@ -5302,12 +5302,12 @@ const de_MetricDataResult = (output: any, context: __SerdeContext): MetricDataRe if (output[_L] != null) { contents[_L] = __expectString(output[_L]); } - if (output.Timestamps === "") { + if (String(output.Timestamps).trim() === "") { contents[_Tim] = []; } else if (output[_Tim] != null && output[_Tim][_m] != null) { contents[_Tim] = de_Timestamps(__getArrayIfSingleItem(output[_Tim][_m]), context); } - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Val] = []; } else if (output[_Val] != null && output[_Val][_m] != null) { contents[_Val] = de_DatapointValues(__getArrayIfSingleItem(output[_Val][_m]), context); @@ -5315,7 +5315,7 @@ const de_MetricDataResult = (output: any, context: __SerdeContext): MetricDataRe if (output[_SCt] != null) { contents[_SCt] = __expectString(output[_SCt]); } - if (output.Messages === "") { + if (String(output.Messages).trim() === "") { contents[_Mess] = []; } else if (output[_Mess] != null && output[_Mess][_m] != null) { contents[_Mess] = de_MetricDataResultMessages(__getArrayIfSingleItem(output[_Mess][_m]), context); @@ -5350,7 +5350,7 @@ const de_MetricDataResults = (output: any, context: __SerdeContext): MetricDataR */ const de_MetricMathAnomalyDetector = (output: any, context: __SerdeContext): MetricMathAnomalyDetector => { const contents: any = {}; - if (output.MetricDataQueries === "") { + if (String(output.MetricDataQueries).trim() === "") { contents[_MDQ] = []; } else if (output[_MDQ] != null && output[_MDQ][_m] != null) { contents[_MDQ] = de_MetricDataQueries(__getArrayIfSingleItem(output[_MDQ][_m]), context); @@ -5437,7 +5437,7 @@ const de_MetricStreamFilter = (output: any, context: __SerdeContext): MetricStre if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.MetricNames === "") { + if (String(output.MetricNames).trim() === "") { contents[_MNe] = []; } else if (output[_MNe] != null && output[_MNe][_m] != null) { contents[_MNe] = de_MetricStreamFilterMetricNames(__getArrayIfSingleItem(output[_MNe][_m]), context); @@ -5486,12 +5486,12 @@ const de_MetricStreamStatisticsConfiguration = ( context: __SerdeContext ): MetricStreamStatisticsConfiguration => { const contents: any = {}; - if (output.IncludeMetrics === "") { + if (String(output.IncludeMetrics).trim() === "") { contents[_IM] = []; } else if (output[_IM] != null && output[_IM][_m] != null) { contents[_IM] = de_MetricStreamStatisticsIncludeMetrics(__getArrayIfSingleItem(output[_IM][_m]), context); } - if (output.AdditionalStatistics === "") { + if (String(output.AdditionalStatistics).trim() === "") { contents[_AS] = []; } else if (output[_AS] != null && output[_AS][_m] != null) { contents[_AS] = de_MetricStreamStatisticsAdditionalStatistics(__getArrayIfSingleItem(output[_AS][_m]), context); @@ -5599,7 +5599,7 @@ const de_PutAnomalyDetectorOutput = (output: any, context: __SerdeContext): PutA */ const de_PutDashboardOutput = (output: any, context: __SerdeContext): PutDashboardOutput => { const contents: any = {}; - if (output.DashboardValidationMessages === "") { + if (String(output.DashboardValidationMessages).trim() === "") { contents[_DVM] = []; } else if (output[_DVM] != null && output[_DVM][_m] != null) { contents[_DVM] = de_DashboardValidationMessages(__getArrayIfSingleItem(output[_DVM][_m]), context); @@ -5620,7 +5620,7 @@ const de_PutInsightRuleOutput = (output: any, context: __SerdeContext): PutInsig */ const de_PutManagedInsightRulesOutput = (output: any, context: __SerdeContext): PutManagedInsightRulesOutput => { const contents: any = {}; - if (output.Failures === "") { + if (String(output.Failures).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_m] != null) { contents[_F] = de_BatchFailures(__getArrayIfSingleItem(output[_F][_m]), context); @@ -5706,7 +5706,7 @@ const de_SingleMetricAnomalyDetector = (output: any, context: __SerdeContext): S if (output[_MN] != null) { contents[_MN] = __expectString(output[_MN]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_D] = []; } else if (output[_D] != null && output[_D][_m] != null) { contents[_D] = de_Dimensions(__getArrayIfSingleItem(output[_D][_m]), context); diff --git a/clients/client-docdb/src/protocols/Aws_query.ts b/clients/client-docdb/src/protocols/Aws_query.ts index 15642022a0f7..4cda18d42ca4 100644 --- a/clients/client-docdb/src/protocols/Aws_query.ts +++ b/clients/client-docdb/src/protocols/Aws_query.ts @@ -5640,7 +5640,7 @@ const de_CertificateList = (output: any, context: __SerdeContext): Certificate[] */ const de_CertificateMessage = (output: any, context: __SerdeContext): CertificateMessage => { const contents: any = {}; - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_Ce] != null) { contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_Ce]), context); @@ -5789,7 +5789,7 @@ const de_CreateGlobalClusterResult = (output: any, context: __SerdeContext): Cre */ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -5848,17 +5848,17 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_RSI] != null) { contents[_RSI] = __expectString(output[_RSI]); } - if (output.ReadReplicaIdentifiers === "") { + if (String(output.ReadReplicaIdentifiers).trim() === "") { contents[_RRI] = []; } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } - if (output.DBClusterMembers === "") { + if (String(output.DBClusterMembers).trim() === "") { contents[_DBCM] = []; } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); @@ -5878,7 +5878,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.AssociatedRoles === "") { + if (String(output.AssociatedRoles).trim() === "") { contents[_AR] = []; } else if (output[_AR] != null && output[_AR][_DBCR] != null) { contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); @@ -5889,7 +5889,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_CCT] != null) { contents[_CCT] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CCT])); } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); @@ -5970,7 +5970,7 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusters === "") { + if (String(output.DBClusters).trim() === "") { contents[_DBCl] = []; } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); @@ -6014,7 +6014,7 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu */ const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -6072,7 +6072,7 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusterParameterGroups === "") { + if (String(output.DBClusterParameterGroups).trim() === "") { contents[_DBCPGl] = []; } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); @@ -6121,7 +6121,7 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ */ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -6202,7 +6202,7 @@ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DB if (output[_AN] != null) { contents[_AN] = __expectString(output[_AN]); } - if (output.AttributeValues === "") { + if (String(output.AttributeValues).trim() === "") { contents[_AVt] = []; } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); @@ -6232,7 +6232,7 @@ const de_DBClusterSnapshotAttributesResult = ( if (output[_DBCSI] != null) { contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output.DBClusterSnapshotAttributes === "") { + if (String(output.DBClusterSnapshotAttributes).trim() === "") { contents[_DBCSAl] = []; } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); @@ -6259,7 +6259,7 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusterSnapshots === "") { + if (String(output.DBClusterSnapshots).trim() === "") { contents[_DBCSl] = []; } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); @@ -6298,12 +6298,12 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_DBEVD] != null) { contents[_DBEVD] = __expectString(output[_DBEVD]); } - if (output.ValidUpgradeTarget === "") { + if (String(output.ValidUpgradeTarget).trim() === "") { contents[_VUT] = []; } else if (output[_VUT] != null && output[_VUT][_UT] != null) { contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } - if (output.ExportableLogTypes === "") { + if (String(output.ExportableLogTypes).trim() === "") { contents[_ELTx] = []; } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); @@ -6311,7 +6311,7 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_SLETCL] != null) { contents[_SLETCL] = __parseBoolean(output[_SLETCL]); } - if (output.SupportedCACertificateIdentifiers === "") { + if (String(output.SupportedCACertificateIdentifiers).trim() === "") { contents[_SCACI] = []; } else if (output[_SCACI] != null && output[_SCACI][_me] != null) { contents[_SCACI] = de_CACertificateIdentifiersList(__getArrayIfSingleItem(output[_SCACI][_me]), context); @@ -6344,7 +6344,7 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBEngineVersions === "") { + if (String(output.DBEngineVersions).trim() === "") { contents[_DBEV] = []; } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); @@ -6381,7 +6381,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_BRP] != null) { contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); @@ -6410,7 +6410,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_PA] != null) { contents[_PA] = __parseBoolean(output[_PA]); } - if (output.StatusInfos === "") { + if (String(output.StatusInfos).trim() === "") { contents[_SIt] = []; } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); @@ -6439,7 +6439,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_DBIA] != null) { contents[_DBIA] = __expectString(output[_DBIA]); } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); @@ -6486,7 +6486,7 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBInstances === "") { + if (String(output.DBInstances).trim() === "") { contents[_DBIn] = []; } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); @@ -6625,7 +6625,7 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = if (output[_SGS] != null) { contents[_SGS] = __expectString(output[_SGS]); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_Sub] != null) { contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); @@ -6669,7 +6669,7 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBSubnetGroups === "") { + if (String(output.DBSubnetGroups).trim() === "") { contents[_DBSGu] = []; } else if (output[_DBSGu] != null && output[_DBSGu][_DBSG] != null) { contents[_DBSGu] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGu][_DBSG]), context); @@ -6843,7 +6843,7 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -6865,7 +6865,7 @@ const de_Event = (output: any, context: __SerdeContext): Event => { if (output[_Me] != null) { contents[_Me] = __expectString(output[_Me]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -6898,7 +6898,7 @@ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCateg if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -6922,7 +6922,7 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC */ const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; - if (output.EventCategoriesMapList === "") { + if (String(output.EventCategoriesMapList).trim() === "") { contents[_ECML] = []; } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); @@ -6949,7 +6949,7 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); @@ -6980,12 +6980,12 @@ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscr if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.SourceIdsList === "") { + if (String(output.SourceIdsList).trim() === "") { contents[_SIL] = []; } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } - if (output.EventCategoriesList === "") { + if (String(output.EventCategoriesList).trim() === "") { contents[_ECL] = []; } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); @@ -7032,7 +7032,7 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.EventSubscriptionsList === "") { + if (String(output.EventSubscriptionsList).trim() === "") { contents[_ESL] = []; } else if (output[_ESL] != null && output[_ESL][_ES] != null) { contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); @@ -7094,7 +7094,7 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = if (output[_DP] != null) { contents[_DP] = __parseBoolean(output[_DP]); } - if (output.GlobalClusterMembers === "") { + if (String(output.GlobalClusterMembers).trim() === "") { contents[_GCM] = []; } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); @@ -7132,7 +7132,7 @@ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClu if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.Readers === "") { + if (String(output.Readers).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_me] != null) { contents[_R] = de_ReadersArnList(__getArrayIfSingleItem(output[_R][_me]), context); @@ -7184,7 +7184,7 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.GlobalClusters === "") { + if (String(output.GlobalClusters).trim() === "") { contents[_GCl] = []; } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); @@ -7508,7 +7508,7 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_LM] != null) { contents[_LM] = __expectString(output[_LM]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -7541,7 +7541,7 @@ const de_OrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; - if (output.OrderableDBInstanceOptions === "") { + if (String(output.OrderableDBInstanceOptions).trim() === "") { contents[_ODBIO] = []; } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); @@ -7606,12 +7606,12 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => */ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; - if (output.LogTypesToEnable === "") { + if (String(output.LogTypesToEnable).trim() === "") { contents[_LTTE] = []; } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } - if (output.LogTypesToDisable === "") { + if (String(output.LogTypesToDisable).trim() === "") { contents[_LTTD] = []; } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); @@ -7675,7 +7675,7 @@ const de_PendingMaintenanceActionsMessage = ( context: __SerdeContext ): PendingMaintenanceActionsMessage => { const contents: any = {}; - if (output.PendingMaintenanceActions === "") { + if (String(output.PendingMaintenanceActions).trim() === "") { contents[_PMA] = []; } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); @@ -7816,7 +7816,7 @@ const de_ResourcePendingMaintenanceActions = ( if (output[_RI] != null) { contents[_RI] = __expectString(output[_RI]); } - if (output.PendingMaintenanceActionDetails === "") { + if (String(output.PendingMaintenanceActionDetails).trim() === "") { contents[_PMAD] = []; } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); @@ -8123,7 +8123,7 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Ta] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); diff --git a/clients/client-ec2/src/protocols/Aws_ec2.ts b/clients/client-ec2/src/protocols/Aws_ec2.ts index bce27c33a7d2..68905c9480e6 100644 --- a/clients/client-ec2/src/protocols/Aws_ec2.ts +++ b/clients/client-ec2/src/protocols/Aws_ec2.ts @@ -60617,7 +60617,7 @@ const de_AcceptVpcEndpointConnectionsResult = ( context: __SerdeContext ): AcceptVpcEndpointConnectionsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -60653,7 +60653,7 @@ const de_AccessScopeAnalysisFinding = (output: any, context: __SerdeContext): Ac if (output[_fI] != null) { contents[_FIi] = __expectString(output[_fI]); } - if (output.findingComponentSet === "") { + if (String(output.findingComponentSet).trim() === "") { contents[_FCi] = []; } else if (output[_fCS] != null && output[_fCS][_i] != null) { contents[_FCi] = de_PathComponentList(__getArrayIfSingleItem(output[_fCS][_i]), context); @@ -60683,7 +60683,7 @@ const de_AccessScopePath = (output: any, context: __SerdeContext): AccessScopePa if (output[_d] != null) { contents[_D] = de_PathStatement(output[_d], context); } - if (output.throughResourceSet === "") { + if (String(output.throughResourceSet).trim() === "") { contents[_TR] = []; } else if (output[_tRS] != null && output[_tRS][_i] != null) { contents[_TR] = de_ThroughResourcesStatementList(__getArrayIfSingleItem(output[_tRS][_i]), context); @@ -60710,7 +60710,7 @@ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttri if (output[_aN] != null) { contents[_ANt] = __expectString(output[_aN]); } - if (output.attributeValueSet === "") { + if (String(output.attributeValueSet).trim() === "") { contents[_AVt] = []; } else if (output[_aVS] != null && output[_aVS][_i] != null) { contents[_AVt] = de_AccountAttributeValueList(__getArrayIfSingleItem(output[_aVS][_i]), context); @@ -60862,17 +60862,17 @@ const de_AdditionalDetail = (output: any, context: __SerdeContext): AdditionalDe if (output[_vES] != null) { contents[_VESp] = de_AnalysisComponent(output[_vES], context); } - if (output.ruleOptionSet === "") { + if (String(output.ruleOptionSet).trim() === "") { contents[_ROu] = []; } else if (output[_rOS] != null && output[_rOS][_i] != null) { contents[_ROu] = de_RuleOptionList(__getArrayIfSingleItem(output[_rOS][_i]), context); } - if (output.ruleGroupTypePairSet === "") { + if (String(output.ruleGroupTypePairSet).trim() === "") { contents[_RGTP] = []; } else if (output[_rGTPS] != null && output[_rGTPS][_i] != null) { contents[_RGTP] = de_RuleGroupTypePairList(__getArrayIfSingleItem(output[_rGTPS][_i]), context); } - if (output.ruleGroupRuleOptionsPairSet === "") { + if (String(output.ruleGroupRuleOptionsPairSet).trim() === "") { contents[_RGROP] = []; } else if (output[_rGROPS] != null && output[_rGROPS][_i] != null) { contents[_RGROP] = de_RuleGroupRuleOptionsPairList(__getArrayIfSingleItem(output[_rGROPS][_i]), context); @@ -60880,7 +60880,7 @@ const de_AdditionalDetail = (output: any, context: __SerdeContext): AdditionalDe if (output[_sN] != null) { contents[_SNe] = __expectString(output[_sN]); } - if (output.loadBalancerSet === "") { + if (String(output.loadBalancerSet).trim() === "") { contents[_LB] = []; } else if (output[_lBS] != null && output[_lBS][_i] != null) { contents[_LB] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_lBS][_i]), context); @@ -60922,7 +60922,7 @@ const de_Address = (output: any, context: __SerdeContext): Address => { if (output[_pIAr] != null) { contents[_PIAr] = __expectString(output[_pIAr]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -61084,7 +61084,7 @@ const de_AllocateAddressResult = (output: any, context: __SerdeContext): Allocat */ const de_AllocateHostsResult = (output: any, context: __SerdeContext): AllocateHostsResult => { const contents: any = {}; - if (output.hostIdSet === "") { + if (String(output.hostIdSet).trim() === "") { contents[_HI] = []; } else if (output[_hIS] != null && output[_hIS][_i] != null) { contents[_HI] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_hIS][_i]), context); @@ -61128,7 +61128,7 @@ const de_AllowedPrincipal = (output: any, context: __SerdeContext): AllowedPrinc if (output[_sPI] != null) { contents[_SPI] = __expectString(output[_sPI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -61271,12 +61271,12 @@ const de_AnalysisLoadBalancerTarget = (output: any, context: __SerdeContext): An */ const de_AnalysisPacketHeader = (output: any, context: __SerdeContext): AnalysisPacketHeader => { const contents: any = {}; - if (output.destinationAddressSet === "") { + if (String(output.destinationAddressSet).trim() === "") { contents[_DAes] = []; } else if (output[_dAS] != null && output[_dAS][_i] != null) { contents[_DAes] = de_IpAddressList(__getArrayIfSingleItem(output[_dAS][_i]), context); } - if (output.destinationPortRangeSet === "") { + if (String(output.destinationPortRangeSet).trim() === "") { contents[_DPRe] = []; } else if (output[_dPRS] != null && output[_dPRS][_i] != null) { contents[_DPRe] = de_PortRangeList(__getArrayIfSingleItem(output[_dPRS][_i]), context); @@ -61284,12 +61284,12 @@ const de_AnalysisPacketHeader = (output: any, context: __SerdeContext): Analysis if (output[_pr] != null) { contents[_P] = __expectString(output[_pr]); } - if (output.sourceAddressSet === "") { + if (String(output.sourceAddressSet).trim() === "") { contents[_SAo] = []; } else if (output[_sAS] != null && output[_sAS][_i] != null) { contents[_SAo] = de_IpAddressList(__getArrayIfSingleItem(output[_sAS][_i]), context); } - if (output.sourcePortRangeSet === "") { + if (String(output.sourcePortRangeSet).trim() === "") { contents[_SPRo] = []; } else if (output[_sPRS] != null && output[_sPRS][_i] != null) { contents[_SPRo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPRS][_i]), context); @@ -61381,7 +61381,7 @@ const de_ApplySecurityGroupsToClientVpnTargetNetworkResult = ( context: __SerdeContext ): ApplySecurityGroupsToClientVpnTargetNetworkResult => { const contents: any = {}; - if (output.securityGroupIds === "") { + if (String(output.securityGroupIds).trim() === "") { contents[_SGI] = []; } else if (output[_sGIe] != null && output[_sGIe][_i] != null) { contents[_SGI] = de_ClientVpnSecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIe][_i]), context); @@ -61480,12 +61480,12 @@ const de_AssignedPrivateIpAddressList = (output: any, context: __SerdeContext): */ const de_AssignIpv6AddressesResult = (output: any, context: __SerdeContext): AssignIpv6AddressesResult => { const contents: any = {}; - if (output.assignedIpv6Addresses === "") { + if (String(output.assignedIpv6Addresses).trim() === "") { contents[_AIAs] = []; } else if (output[_aIA] != null && output[_aIA][_i] != null) { contents[_AIAs] = de_Ipv6AddressList(__getArrayIfSingleItem(output[_aIA][_i]), context); } - if (output.assignedIpv6PrefixSet === "") { + if (String(output.assignedIpv6PrefixSet).trim() === "") { contents[_AIP] = []; } else if (output[_aIPS] != null && output[_aIPS][_i] != null) { contents[_AIP] = de_IpPrefixList(__getArrayIfSingleItem(output[_aIPS][_i]), context); @@ -61504,12 +61504,12 @@ const de_AssignPrivateIpAddressesResult = (output: any, context: __SerdeContext) if (output[_nII] != null) { contents[_NII] = __expectString(output[_nII]); } - if (output.assignedPrivateIpAddressesSet === "") { + if (String(output.assignedPrivateIpAddressesSet).trim() === "") { contents[_APIAss] = []; } else if (output[_aPIAS] != null && output[_aPIAS][_i] != null) { contents[_APIAss] = de_AssignedPrivateIpAddressList(__getArrayIfSingleItem(output[_aPIAS][_i]), context); } - if (output.assignedIpv4PrefixSet === "") { + if (String(output.assignedIpv4PrefixSet).trim() === "") { contents[_AIPs] = []; } else if (output[_aIPSs] != null && output[_aIPSs][_i] != null) { contents[_AIPs] = de_Ipv4PrefixesList(__getArrayIfSingleItem(output[_aIPSs][_i]), context); @@ -61528,7 +61528,7 @@ const de_AssignPrivateNatGatewayAddressResult = ( if (output[_nGI] != null) { contents[_NGI] = __expectString(output[_nGI]); } - if (output.natGatewayAddressSet === "") { + if (String(output.natGatewayAddressSet).trim() === "") { contents[_NGA] = []; } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); @@ -61729,7 +61729,7 @@ const de_AssociateNatGatewayAddressResult = ( if (output[_nGI] != null) { contents[_NGI] = __expectString(output[_nGI]); } - if (output.natGatewayAddressSet === "") { + if (String(output.natGatewayAddressSet).trim() === "") { contents[_NGA] = []; } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); @@ -61983,7 +61983,7 @@ const de_AttributeSummary = (output: any, context: __SerdeContext): AttributeSum if (output[_nOUA] != null) { contents[_NOUA] = __strictParseInt32(output[_nOUA]) as number; } - if (output.regionalSummarySet === "") { + if (String(output.regionalSummarySet).trim() === "") { contents[_RSeg] = []; } else if (output[_rSS] != null && output[_rSS][_i] != null) { contents[_RSeg] = de_RegionalSummaryList(__getArrayIfSingleItem(output[_rSS][_i]), context); @@ -62072,7 +62072,7 @@ const de_AuthorizeSecurityGroupEgressResult = ( if (output[_r] != null) { contents[_Ret] = __parseBoolean(output[_r]); } - if (output.securityGroupRuleSet === "") { + if (String(output.securityGroupRuleSet).trim() === "") { contents[_SGR] = []; } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); @@ -62091,7 +62091,7 @@ const de_AuthorizeSecurityGroupIngressResult = ( if (output[_r] != null) { contents[_Ret] = __parseBoolean(output[_r]); } - if (output.securityGroupRuleSet === "") { + if (String(output.securityGroupRuleSet).trim() === "") { contents[_SGR] = []; } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); @@ -62107,7 +62107,7 @@ const de_AvailabilityZone = (output: any, context: __SerdeContext): Availability if (output[_oIS] != null) { contents[_OIS] = __expectString(output[_oIS]); } - if (output.messageSet === "") { + if (String(output.messageSet).trim() === "") { contents[_Mes] = []; } else if (output[_mS] != null && output[_mS][_i] != null) { contents[_Mes] = de_AvailabilityZoneMessageList(__getArrayIfSingleItem(output[_mS][_i]), context); @@ -62183,7 +62183,7 @@ const de_AvailabilityZoneMessageList = (output: any, context: __SerdeContext): A */ const de_AvailableCapacity = (output: any, context: __SerdeContext): AvailableCapacity => { const contents: any = {}; - if (output.availableInstanceCapacity === "") { + if (String(output.availableInstanceCapacity).trim() === "") { contents[_AIC] = []; } else if (output[_aIC] != null && output[_aIC][_i] != null) { contents[_AIC] = de_AvailableInstanceCapacityList(__getArrayIfSingleItem(output[_aIC][_i]), context); @@ -62435,7 +62435,7 @@ const de_ByoipCidr = (output: any, context: __SerdeContext): ByoipCidr => { if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.asnAssociationSet === "") { + if (String(output.asnAssociationSet).trim() === "") { contents[_AAsns] = []; } else if (output[_aAS] != null && output[_aAS][_i] != null) { contents[_AAsns] = de_AsnAssociationSet(__getArrayIfSingleItem(output[_aAS][_i]), context); @@ -62499,7 +62499,7 @@ const de_CancelCapacityReservationFleetsResult = ( context: __SerdeContext ): CancelCapacityReservationFleetsResult => { const contents: any = {}; - if (output.successfulFleetCancellationSet === "") { + if (String(output.successfulFleetCancellationSet).trim() === "") { contents[_SFC] = []; } else if (output[_sFCS] != null && output[_sFCS][_i] != null) { contents[_SFC] = de_CapacityReservationFleetCancellationStateSet( @@ -62507,7 +62507,7 @@ const de_CancelCapacityReservationFleetsResult = ( context ); } - if (output.failedFleetCancellationSet === "") { + if (String(output.failedFleetCancellationSet).trim() === "") { contents[_FFC] = []; } else if (output[_fFCS] != null && output[_fFCS][_i] != null) { contents[_FFC] = de_FailedCapacityReservationFleetCancellationResultSet( @@ -62607,7 +62607,7 @@ const de_CancelReservedInstancesListingResult = ( context: __SerdeContext ): CancelReservedInstancesListingResult => { const contents: any = {}; - if (output.reservedInstancesListingsSet === "") { + if (String(output.reservedInstancesListingsSet).trim() === "") { contents[_RIL] = []; } else if (output[_rILS] != null && output[_rILS][_i] != null) { contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); @@ -62665,12 +62665,12 @@ const de_CancelSpotFleetRequestsErrorSet = ( */ const de_CancelSpotFleetRequestsResponse = (output: any, context: __SerdeContext): CancelSpotFleetRequestsResponse => { const contents: any = {}; - if (output.successfulFleetRequestSet === "") { + if (String(output.successfulFleetRequestSet).trim() === "") { contents[_SFR] = []; } else if (output[_sFRS] != null && output[_sFRS][_i] != null) { contents[_SFR] = de_CancelSpotFleetRequestsSuccessSet(__getArrayIfSingleItem(output[_sFRS][_i]), context); } - if (output.unsuccessfulFleetRequestSet === "") { + if (String(output.unsuccessfulFleetRequestSet).trim() === "") { contents[_UFR] = []; } else if (output[_uFRS] != null && output[_uFRS][_i] != null) { contents[_UFR] = de_CancelSpotFleetRequestsErrorSet(__getArrayIfSingleItem(output[_uFRS][_i]), context); @@ -62720,7 +62720,7 @@ const de_CancelSpotInstanceRequestsResult = ( context: __SerdeContext ): CancelSpotInstanceRequestsResult => { const contents: any = {}; - if (output.spotInstanceRequestSet === "") { + if (String(output.spotInstanceRequestSet).trim() === "") { contents[_CSIRa] = []; } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { contents[_CSIRa] = de_CancelledSpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); @@ -62770,7 +62770,7 @@ const de_CapacityBlock = (output: any, context: __SerdeContext): CapacityBlock = if (output[_aZI] != null) { contents[_AZI] = __expectString(output[_aZI]); } - if (output.capacityReservationIdSet === "") { + if (String(output.capacityReservationIdSet).trim() === "") { contents[_CRIa] = []; } else if (output[_cRIS] != null && output[_cRIS][_i] != null) { contents[_CRIa] = de_CapacityReservationIdSet(__getArrayIfSingleItem(output[_cRIS][_i]), context); @@ -62787,7 +62787,7 @@ const de_CapacityBlock = (output: any, context: __SerdeContext): CapacityBlock = if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -63000,7 +63000,7 @@ const de_CapacityBlockStatus = (output: any, context: __SerdeContext): CapacityB if (output[_tUC] != null) { contents[_TUC] = __strictParseInt32(output[_tUC]) as number; } - if (output.capacityReservationStatusSet === "") { + if (String(output.capacityReservationStatusSet).trim() === "") { contents[_CRSap] = []; } else if (output[_cRSS] != null && output[_cRSS][_i] != null) { contents[_CRSap] = de_CapacityReservationStatusSet(__getArrayIfSingleItem(output[_cRSS][_i]), context); @@ -63078,7 +63078,7 @@ const de_CapacityReservation = (output: any, context: __SerdeContext): CapacityR if (output[_cD] != null) { contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -63092,7 +63092,7 @@ const de_CapacityReservation = (output: any, context: __SerdeContext): CapacityR if (output[_pGA] != null) { contents[_PGA] = __expectString(output[_pGA]); } - if (output.capacityAllocationSet === "") { + if (String(output.capacityAllocationSet).trim() === "") { contents[_CAa] = []; } else if (output[_cAS] != null && output[_cAS][_i] != null) { contents[_CAa] = de_CapacityAllocations(__getArrayIfSingleItem(output[_cAS][_i]), context); @@ -63213,12 +63213,12 @@ const de_CapacityReservationFleet = (output: any, context: __SerdeContext): Capa if (output[_aSl] != null) { contents[_AS] = __expectString(output[_aSl]); } - if (output.instanceTypeSpecificationSet === "") { + if (String(output.instanceTypeSpecificationSet).trim() === "") { contents[_ITS] = []; } else if (output[_iTSS] != null && output[_iTSS][_i] != null) { contents[_ITS] = de_FleetCapacityReservationSet(__getArrayIfSingleItem(output[_iTSS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -63431,7 +63431,7 @@ const de_CarrierGateway = (output: any, context: __SerdeContext): CarrierGateway if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -63513,7 +63513,7 @@ const de_ClassicLinkDnsSupportList = (output: any, context: __SerdeContext): Cla */ const de_ClassicLinkInstance = (output: any, context: __SerdeContext): ClassicLinkInstance => { const contents: any = {}; - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -63521,7 +63521,7 @@ const de_ClassicLinkInstance = (output: any, context: __SerdeContext): ClassicLi if (output[_iI] != null) { contents[_IIn] = __expectString(output[_iI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -63570,7 +63570,7 @@ const de_ClassicLoadBalancers = (output: any, context: __SerdeContext): ClassicL */ const de_ClassicLoadBalancersConfig = (output: any, context: __SerdeContext): ClassicLoadBalancersConfig => { const contents: any = {}; - if (output.classicLoadBalancers === "") { + if (String(output.classicLoadBalancers).trim() === "") { contents[_CLB] = []; } else if (output[_cLB] != null && output[_cLB][_i] != null) { contents[_CLB] = de_ClassicLoadBalancers(__getArrayIfSingleItem(output[_cLB][_i]), context); @@ -63738,7 +63738,7 @@ const de_ClientVpnConnection = (output: any, context: __SerdeContext): ClientVpn if (output[_cETo] != null) { contents[_CETon] = __expectString(output[_cETo]); } - if (output.postureComplianceStatusSet === "") { + if (String(output.postureComplianceStatusSet).trim() === "") { contents[_PCS] = []; } else if (output[_pCSS] != null && output[_pCSS][_i] != null) { contents[_PCS] = de_ValueStringList(__getArrayIfSingleItem(output[_pCSS][_i]), context); @@ -63797,7 +63797,7 @@ const de_ClientVpnEndpoint = (output: any, context: __SerdeContext): ClientVpnEn if (output[_cCB] != null) { contents[_CCB] = __expectString(output[_cCB]); } - if (output.dnsServer === "") { + if (String(output.dnsServer).trim() === "") { contents[_DSn] = []; } else if (output[_dS] != null && output[_dS][_i] != null) { contents[_DSn] = de_ValueStringList(__getArrayIfSingleItem(output[_dS][_i]), context); @@ -63814,7 +63814,7 @@ const de_ClientVpnEndpoint = (output: any, context: __SerdeContext): ClientVpnEn if (output[_vPp] != null) { contents[_VP] = __strictParseInt32(output[_vPp]) as number; } - if (output.associatedTargetNetwork === "") { + if (String(output.associatedTargetNetwork).trim() === "") { contents[_ATN] = []; } else if (output[_aTN] != null && output[_aTN][_i] != null) { contents[_ATN] = de_AssociatedTargetNetworkSet(__getArrayIfSingleItem(output[_aTN][_i]), context); @@ -63822,7 +63822,7 @@ const de_ClientVpnEndpoint = (output: any, context: __SerdeContext): ClientVpnEn if (output[_sCA] != null) { contents[_SCA] = __expectString(output[_sCA]); } - if (output.authenticationOptions === "") { + if (String(output.authenticationOptions).trim() === "") { contents[_AO] = []; } else if (output[_aO] != null && output[_aO][_i] != null) { contents[_AO] = de_ClientVpnAuthenticationList(__getArrayIfSingleItem(output[_aO][_i]), context); @@ -63830,12 +63830,12 @@ const de_ClientVpnEndpoint = (output: any, context: __SerdeContext): ClientVpnEn if (output[_cLO] != null) { contents[_CLO] = de_ConnectionLogResponseOptions(output[_cLO], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.securityGroupIdSet === "") { + if (String(output.securityGroupIdSet).trim() === "") { contents[_SGI] = []; } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { contents[_SGI] = de_ClientVpnSecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIS][_i]), context); @@ -64039,7 +64039,7 @@ const de_CoipPool = (output: any, context: __SerdeContext): CoipPool => { if (output[_pIo] != null) { contents[_PIo] = __expectString(output[_pIo]); } - if (output.poolCidrSet === "") { + if (String(output.poolCidrSet).trim() === "") { contents[_PCo] = []; } else if (output[_pCS] != null && output[_pCS][_i] != null) { contents[_PCo] = de_ValueStringList(__getArrayIfSingleItem(output[_pCS][_i]), context); @@ -64047,7 +64047,7 @@ const de_CoipPool = (output: any, context: __SerdeContext): CoipPool => { if (output[_lGRTI] != null) { contents[_LGRTI] = __expectString(output[_lGRTI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -64120,7 +64120,7 @@ const de_ConnectionNotification = (output: any, context: __SerdeContext): Connec if (output[_cNAo] != null) { contents[_CNAon] = __expectString(output[_cNAo]); } - if (output.connectionEvents === "") { + if (String(output.connectionEvents).trim() === "") { contents[_CEo] = []; } else if (output[_cE] != null && output[_cE][_i] != null) { contents[_CEo] = de_ValueStringList(__getArrayIfSingleItem(output[_cE][_i]), context); @@ -64242,7 +64242,7 @@ const de_ConversionTask = (output: any, context: __SerdeContext): ConversionTask if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -64277,7 +64277,7 @@ const de_CopyImageResult = (output: any, context: __SerdeContext): CopyImageResu */ const de_CopySnapshotResult = (output: any, context: __SerdeContext): CopySnapshotResult => { const contents: any = {}; - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -64332,7 +64332,7 @@ const de_CpuOptions = (output: any, context: __SerdeContext): CpuOptions => { */ const de_CpuPerformanceFactor = (output: any, context: __SerdeContext): CpuPerformanceFactor => { const contents: any = {}; - if (output.referenceSet === "") { + if (String(output.referenceSet).trim() === "") { contents[_R] = []; } else if (output[_rS] != null && output[_rS][_i] != null) { contents[_R] = de_PerformanceFactorReferenceSet(__getArrayIfSingleItem(output[_rS][_i]), context); @@ -64395,12 +64395,12 @@ const de_CreateCapacityReservationFleetResult = ( if (output[_t] != null) { contents[_Te] = __expectString(output[_t]); } - if (output.fleetCapacityReservationSet === "") { + if (String(output.fleetCapacityReservationSet).trim() === "") { contents[_FCR] = []; } else if (output[_fCRS] != null && output[_fCRS][_i] != null) { contents[_FCR] = de_FleetCapacityReservationSet(__getArrayIfSingleItem(output[_fCRS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -64597,7 +64597,7 @@ const de_CreateFleetInstance = (output: any, context: __SerdeContext): CreateFle if (output[_l] != null) { contents[_Li] = __expectString(output[_l]); } - if (output.instanceIds === "") { + if (String(output.instanceIds).trim() === "") { contents[_IIns] = []; } else if (output[_iIn] != null && output[_iIn][_i] != null) { contents[_IIns] = de_InstanceIdsSet(__getArrayIfSingleItem(output[_iIn][_i]), context); @@ -64630,12 +64630,12 @@ const de_CreateFleetResult = (output: any, context: __SerdeContext): CreateFleet if (output[_fIl] != null) { contents[_FIl] = __expectString(output[_fIl]); } - if (output.errorSet === "") { + if (String(output.errorSet).trim() === "") { contents[_Err] = []; } else if (output[_eSr] != null && output[_eSr][_i] != null) { contents[_Err] = de_CreateFleetErrorsSet(__getArrayIfSingleItem(output[_eSr][_i]), context); } - if (output.fleetInstanceSet === "") { + if (String(output.fleetInstanceSet).trim() === "") { contents[_In] = []; } else if (output[_fIS] != null && output[_fIS][_i] != null) { contents[_In] = de_CreateFleetInstancesSet(__getArrayIfSingleItem(output[_fIS][_i]), context); @@ -64651,12 +64651,12 @@ const de_CreateFlowLogsResult = (output: any, context: __SerdeContext): CreateFl if (output[_cT] != null) { contents[_CTl] = __expectString(output[_cT]); } - if (output.flowLogIdSet === "") { + if (String(output.flowLogIdSet).trim() === "") { contents[_FLI] = []; } else if (output[_fLIS] != null && output[_fLIS][_i] != null) { contents[_FLI] = de_ValueStringList(__getArrayIfSingleItem(output[_fLIS][_i]), context); } - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -65076,7 +65076,7 @@ const de_CreateReservedInstancesListingResult = ( context: __SerdeContext ): CreateReservedInstancesListingResult => { const contents: any = {}; - if (output.reservedInstancesListingsSet === "") { + if (String(output.reservedInstancesListingsSet).trim() === "") { contents[_RIL] = []; } else if (output[_rILS] != null && output[_rILS][_i] != null) { contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); @@ -65161,7 +65161,7 @@ const de_CreateSecurityGroupResult = (output: any, context: __SerdeContext): Cre if (output[_gIr] != null) { contents[_GIr] = __expectString(output[_gIr]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -65177,7 +65177,7 @@ const de_CreateSecurityGroupResult = (output: any, context: __SerdeContext): Cre */ const de_CreateSnapshotsResult = (output: any, context: __SerdeContext): CreateSnapshotsResult => { const contents: any = {}; - if (output.snapshotSet === "") { + if (String(output.snapshotSet).trim() === "") { contents[_Sn] = []; } else if (output[_sS] != null && output[_sS][_i] != null) { contents[_Sn] = de_SnapshotSet(__getArrayIfSingleItem(output[_sS][_i]), context); @@ -65665,7 +65665,7 @@ const de_CustomerGateway = (output: any, context: __SerdeContext): CustomerGatew if (output[_dN] != null) { contents[_DN] = __expectString(output[_dN]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -65725,7 +65725,7 @@ const de_DataResponse = (output: any, context: __SerdeContext): DataResponse => if (output[_pe] != null) { contents[_Per] = __expectString(output[_pe]); } - if (output.metricPointSet === "") { + if (String(output.metricPointSet).trim() === "") { contents[_MPe] = []; } else if (output[_mPS] != null && output[_mPS][_i] != null) { contents[_MPe] = de_MetricPoints(__getArrayIfSingleItem(output[_mPS][_i]), context); @@ -65770,7 +65770,7 @@ const de_DeclarativePoliciesReport = (output: any, context: __SerdeContext): Dec if (output[_sta] != null) { contents[_Statu] = __expectString(output[_sta]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -65913,12 +65913,12 @@ const de_DeleteFleetErrorSet = (output: any, context: __SerdeContext): DeleteFle */ const de_DeleteFleetsResult = (output: any, context: __SerdeContext): DeleteFleetsResult => { const contents: any = {}; - if (output.successfulFleetDeletionSet === "") { + if (String(output.successfulFleetDeletionSet).trim() === "") { contents[_SFD] = []; } else if (output[_sFDS] != null && output[_sFDS][_i] != null) { contents[_SFD] = de_DeleteFleetSuccessSet(__getArrayIfSingleItem(output[_sFDS][_i]), context); } - if (output.unsuccessfulFleetDeletionSet === "") { + if (String(output.unsuccessfulFleetDeletionSet).trim() === "") { contents[_UFD] = []; } else if (output[_uFDS] != null && output[_uFDS][_i] != null) { contents[_UFD] = de_DeleteFleetErrorSet(__getArrayIfSingleItem(output[_uFDS][_i]), context); @@ -65959,7 +65959,7 @@ const de_DeleteFleetSuccessSet = (output: any, context: __SerdeContext): DeleteF */ const de_DeleteFlowLogsResult = (output: any, context: __SerdeContext): DeleteFlowLogsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -66179,7 +66179,7 @@ const de_DeleteLaunchTemplateVersionsResult = ( context: __SerdeContext ): DeleteLaunchTemplateVersionsResult => { const contents: any = {}; - if (output.successfullyDeletedLaunchTemplateVersionSet === "") { + if (String(output.successfullyDeletedLaunchTemplateVersionSet).trim() === "") { contents[_SDLTV] = []; } else if (output[_sDLTVS] != null && output[_sDLTVS][_i] != null) { contents[_SDLTV] = de_DeleteLaunchTemplateVersionsResponseSuccessSet( @@ -66187,7 +66187,7 @@ const de_DeleteLaunchTemplateVersionsResult = ( context ); } - if (output.unsuccessfullyDeletedLaunchTemplateVersionSet === "") { + if (String(output.unsuccessfullyDeletedLaunchTemplateVersionSet).trim() === "") { contents[_UDLTV] = []; } else if (output[_uDLTVS] != null && output[_uDLTVS][_i] != null) { contents[_UDLTV] = de_DeleteLaunchTemplateVersionsResponseErrorSet( @@ -66404,12 +66404,12 @@ const de_DeleteQueuedReservedInstancesResult = ( context: __SerdeContext ): DeleteQueuedReservedInstancesResult => { const contents: any = {}; - if (output.successfulQueuedPurchaseDeletionSet === "") { + if (String(output.successfulQueuedPurchaseDeletionSet).trim() === "") { contents[_SQPD] = []; } else if (output[_sQPDS] != null && output[_sQPDS][_i] != null) { contents[_SQPD] = de_SuccessfulQueuedPurchaseDeletionSet(__getArrayIfSingleItem(output[_sQPDS][_i]), context); } - if (output.failedQueuedPurchaseDeletionSet === "") { + if (String(output.failedQueuedPurchaseDeletionSet).trim() === "") { contents[_FQPD] = []; } else if (output[_fQPDS] != null && output[_fQPDS][_i] != null) { contents[_FQPD] = de_FailedQueuedPurchaseDeletionSet(__getArrayIfSingleItem(output[_fQPDS][_i]), context); @@ -66776,7 +66776,7 @@ const de_DeleteVpcEndpointConnectionNotificationsResult = ( context: __SerdeContext ): DeleteVpcEndpointConnectionNotificationsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -66792,7 +66792,7 @@ const de_DeleteVpcEndpointServiceConfigurationsResult = ( context: __SerdeContext ): DeleteVpcEndpointServiceConfigurationsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -66805,7 +66805,7 @@ const de_DeleteVpcEndpointServiceConfigurationsResult = ( */ const de_DeleteVpcEndpointsResult = (output: any, context: __SerdeContext): DeleteVpcEndpointsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -66893,7 +66893,7 @@ const de_DeprovisionPublicIpv4PoolCidrResult = ( if (output[_pIo] != null) { contents[_PIo] = __expectString(output[_pIo]); } - if (output.deprovisionedAddressSet === "") { + if (String(output.deprovisionedAddressSet).trim() === "") { contents[_DAep] = []; } else if (output[_dASe] != null && output[_dASe][_i] != null) { contents[_DAep] = de_DeprovisionedAddressSet(__getArrayIfSingleItem(output[_dASe][_i]), context); @@ -66909,7 +66909,7 @@ const de_DeregisterImageResult = (output: any, context: __SerdeContext): Deregis if (output[_r] != null) { contents[_Ret] = __parseBoolean(output[_r]); } - if (output.deleteSnapshotResultSet === "") { + if (String(output.deleteSnapshotResultSet).trim() === "") { contents[_DSR] = []; } else if (output[_dSRS] != null && output[_dSRS][_i] != null) { contents[_DSR] = de_DeleteSnapshotResultSet(__getArrayIfSingleItem(output[_dSRS][_i]), context); @@ -66964,7 +66964,7 @@ const de_DeregisterTransitGatewayMulticastGroupSourcesResult = ( */ const de_DescribeAccountAttributesResult = (output: any, context: __SerdeContext): DescribeAccountAttributesResult => { const contents: any = {}; - if (output.accountAttributeSet === "") { + if (String(output.accountAttributeSet).trim() === "") { contents[_AAcc] = []; } else if (output[_aASc] != null && output[_aASc][_i] != null) { contents[_AAcc] = de_AccountAttributeList(__getArrayIfSingleItem(output[_aASc][_i]), context); @@ -66980,7 +66980,7 @@ const de_DescribeAddressesAttributeResult = ( context: __SerdeContext ): DescribeAddressesAttributeResult => { const contents: any = {}; - if (output.addressSet === "") { + if (String(output.addressSet).trim() === "") { contents[_Addr] = []; } else if (output[_aSd] != null && output[_aSd][_i] != null) { contents[_Addr] = de_AddressSet(__getArrayIfSingleItem(output[_aSd][_i]), context); @@ -66996,7 +66996,7 @@ const de_DescribeAddressesAttributeResult = ( */ const de_DescribeAddressesResult = (output: any, context: __SerdeContext): DescribeAddressesResult => { const contents: any = {}; - if (output.addressesSet === "") { + if (String(output.addressesSet).trim() === "") { contents[_Addr] = []; } else if (output[_aSdd] != null && output[_aSdd][_i] != null) { contents[_Addr] = de_AddressList(__getArrayIfSingleItem(output[_aSdd][_i]), context); @@ -67009,7 +67009,7 @@ const de_DescribeAddressesResult = (output: any, context: __SerdeContext): Descr */ const de_DescribeAddressTransfersResult = (output: any, context: __SerdeContext): DescribeAddressTransfersResult => { const contents: any = {}; - if (output.addressTransferSet === "") { + if (String(output.addressTransferSet).trim() === "") { contents[_ATddr] = []; } else if (output[_aTSd] != null && output[_aTSd][_i] != null) { contents[_ATddr] = de_AddressTransferList(__getArrayIfSingleItem(output[_aTSd][_i]), context); @@ -67028,7 +67028,7 @@ const de_DescribeAggregateIdFormatResult = (output: any, context: __SerdeContext if (output[_uLIA] != null) { contents[_ULIA] = __parseBoolean(output[_uLIA]); } - if (output.statusSet === "") { + if (String(output.statusSet).trim() === "") { contents[_Status] = []; } else if (output[_sSt] != null && output[_sSt][_i] != null) { contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); @@ -67041,7 +67041,7 @@ const de_DescribeAggregateIdFormatResult = (output: any, context: __SerdeContext */ const de_DescribeAvailabilityZonesResult = (output: any, context: __SerdeContext): DescribeAvailabilityZonesResult => { const contents: any = {}; - if (output.availabilityZoneInfo === "") { + if (String(output.availabilityZoneInfo).trim() === "") { contents[_AZv] = []; } else if (output[_aZIv] != null && output[_aZIv][_i] != null) { contents[_AZv] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_aZIv][_i]), context); @@ -67060,7 +67060,7 @@ const de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.subscriptionSet === "") { + if (String(output.subscriptionSet).trim() === "") { contents[_Sub] = []; } else if (output[_sSu] != null && output[_sSu][_i] != null) { contents[_Sub] = de_SubscriptionList(__getArrayIfSingleItem(output[_sSu][_i]), context); @@ -67073,7 +67073,7 @@ const de_DescribeAwsNetworkPerformanceMetricSubscriptionsResult = ( */ const de_DescribeBundleTasksResult = (output: any, context: __SerdeContext): DescribeBundleTasksResult => { const contents: any = {}; - if (output.bundleInstanceTasksSet === "") { + if (String(output.bundleInstanceTasksSet).trim() === "") { contents[_BTun] = []; } else if (output[_bITS] != null && output[_bITS][_i] != null) { contents[_BTun] = de_BundleTaskList(__getArrayIfSingleItem(output[_bITS][_i]), context); @@ -67086,7 +67086,7 @@ const de_DescribeBundleTasksResult = (output: any, context: __SerdeContext): Des */ const de_DescribeByoipCidrsResult = (output: any, context: __SerdeContext): DescribeByoipCidrsResult => { const contents: any = {}; - if (output.byoipCidrSet === "") { + if (String(output.byoipCidrSet).trim() === "") { contents[_BCy] = []; } else if (output[_bCS] != null && output[_bCS][_i] != null) { contents[_BCy] = de_ByoipCidrSet(__getArrayIfSingleItem(output[_bCS][_i]), context); @@ -67105,7 +67105,7 @@ const de_DescribeCapacityBlockExtensionHistoryResult = ( context: __SerdeContext ): DescribeCapacityBlockExtensionHistoryResult => { const contents: any = {}; - if (output.capacityBlockExtensionSet === "") { + if (String(output.capacityBlockExtensionSet).trim() === "") { contents[_CBE] = []; } else if (output[_cBESa] != null && output[_cBESa][_i] != null) { contents[_CBE] = de_CapacityBlockExtensionSet(__getArrayIfSingleItem(output[_cBESa][_i]), context); @@ -67124,7 +67124,7 @@ const de_DescribeCapacityBlockExtensionOfferingsResult = ( context: __SerdeContext ): DescribeCapacityBlockExtensionOfferingsResult => { const contents: any = {}; - if (output.capacityBlockExtensionOfferingSet === "") { + if (String(output.capacityBlockExtensionOfferingSet).trim() === "") { contents[_CBEO] = []; } else if (output[_cBEOS] != null && output[_cBEOS][_i] != null) { contents[_CBEO] = de_CapacityBlockExtensionOfferingSet(__getArrayIfSingleItem(output[_cBEOS][_i]), context); @@ -67143,7 +67143,7 @@ const de_DescribeCapacityBlockOfferingsResult = ( context: __SerdeContext ): DescribeCapacityBlockOfferingsResult => { const contents: any = {}; - if (output.capacityBlockOfferingSet === "") { + if (String(output.capacityBlockOfferingSet).trim() === "") { contents[_CBO] = []; } else if (output[_cBOS] != null && output[_cBOS][_i] != null) { contents[_CBO] = de_CapacityBlockOfferingSet(__getArrayIfSingleItem(output[_cBOS][_i]), context); @@ -67159,7 +67159,7 @@ const de_DescribeCapacityBlockOfferingsResult = ( */ const de_DescribeCapacityBlocksResult = (output: any, context: __SerdeContext): DescribeCapacityBlocksResult => { const contents: any = {}; - if (output.capacityBlockSet === "") { + if (String(output.capacityBlockSet).trim() === "") { contents[_CBa] = []; } else if (output[_cBS] != null && output[_cBS][_i] != null) { contents[_CBa] = de_CapacityBlockSet(__getArrayIfSingleItem(output[_cBS][_i]), context); @@ -67178,7 +67178,7 @@ const de_DescribeCapacityBlockStatusResult = ( context: __SerdeContext ): DescribeCapacityBlockStatusResult => { const contents: any = {}; - if (output.capacityBlockStatusSet === "") { + if (String(output.capacityBlockStatusSet).trim() === "") { contents[_CBS] = []; } else if (output[_cBSS] != null && output[_cBSS][_i] != null) { contents[_CBS] = de_CapacityBlockStatusSet(__getArrayIfSingleItem(output[_cBSS][_i]), context); @@ -67200,7 +67200,7 @@ const de_DescribeCapacityReservationBillingRequestsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.capacityReservationBillingRequestSet === "") { + if (String(output.capacityReservationBillingRequestSet).trim() === "") { contents[_CRBR] = []; } else if (output[_cRBRS] != null && output[_cRBRS][_i] != null) { contents[_CRBR] = de_CapacityReservationBillingRequestSet(__getArrayIfSingleItem(output[_cRBRS][_i]), context); @@ -67216,7 +67216,7 @@ const de_DescribeCapacityReservationFleetsResult = ( context: __SerdeContext ): DescribeCapacityReservationFleetsResult => { const contents: any = {}; - if (output.capacityReservationFleetSet === "") { + if (String(output.capacityReservationFleetSet).trim() === "") { contents[_CRF] = []; } else if (output[_cRFS] != null && output[_cRFS][_i] != null) { contents[_CRF] = de_CapacityReservationFleetSet(__getArrayIfSingleItem(output[_cRFS][_i]), context); @@ -67238,7 +67238,7 @@ const de_DescribeCapacityReservationsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.capacityReservationSet === "") { + if (String(output.capacityReservationSet).trim() === "") { contents[_CRapac] = []; } else if (output[_cRS] != null && output[_cRS][_i] != null) { contents[_CRapac] = de_CapacityReservationSet(__getArrayIfSingleItem(output[_cRS][_i]), context); @@ -67251,7 +67251,7 @@ const de_DescribeCapacityReservationsResult = ( */ const de_DescribeCarrierGatewaysResult = (output: any, context: __SerdeContext): DescribeCarrierGatewaysResult => { const contents: any = {}; - if (output.carrierGatewaySet === "") { + if (String(output.carrierGatewaySet).trim() === "") { contents[_CGa] = []; } else if (output[_cGS] != null && output[_cGS][_i] != null) { contents[_CGa] = de_CarrierGatewaySet(__getArrayIfSingleItem(output[_cGS][_i]), context); @@ -67270,7 +67270,7 @@ const de_DescribeClassicLinkInstancesResult = ( context: __SerdeContext ): DescribeClassicLinkInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_In] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_In] = de_ClassicLinkInstanceList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -67289,7 +67289,7 @@ const de_DescribeClientVpnAuthorizationRulesResult = ( context: __SerdeContext ): DescribeClientVpnAuthorizationRulesResult => { const contents: any = {}; - if (output.authorizationRule === "") { + if (String(output.authorizationRule).trim() === "") { contents[_ARut] = []; } else if (output[_aR] != null && output[_aR][_i] != null) { contents[_ARut] = de_AuthorizationRuleSet(__getArrayIfSingleItem(output[_aR][_i]), context); @@ -67308,7 +67308,7 @@ const de_DescribeClientVpnConnectionsResult = ( context: __SerdeContext ): DescribeClientVpnConnectionsResult => { const contents: any = {}; - if (output.connections === "") { + if (String(output.connections).trim() === "") { contents[_Conn] = []; } else if (output[_con] != null && output[_con][_i] != null) { contents[_Conn] = de_ClientVpnConnectionSet(__getArrayIfSingleItem(output[_con][_i]), context); @@ -67327,7 +67327,7 @@ const de_DescribeClientVpnEndpointsResult = ( context: __SerdeContext ): DescribeClientVpnEndpointsResult => { const contents: any = {}; - if (output.clientVpnEndpoint === "") { + if (String(output.clientVpnEndpoint).trim() === "") { contents[_CVEl] = []; } else if (output[_cVE] != null && output[_cVE][_i] != null) { contents[_CVEl] = de_EndpointSet(__getArrayIfSingleItem(output[_cVE][_i]), context); @@ -67343,7 +67343,7 @@ const de_DescribeClientVpnEndpointsResult = ( */ const de_DescribeClientVpnRoutesResult = (output: any, context: __SerdeContext): DescribeClientVpnRoutesResult => { const contents: any = {}; - if (output.routes === "") { + if (String(output.routes).trim() === "") { contents[_Rout] = []; } else if (output[_rou] != null && output[_rou][_i] != null) { contents[_Rout] = de_ClientVpnRouteSet(__getArrayIfSingleItem(output[_rou][_i]), context); @@ -67362,7 +67362,7 @@ const de_DescribeClientVpnTargetNetworksResult = ( context: __SerdeContext ): DescribeClientVpnTargetNetworksResult => { const contents: any = {}; - if (output.clientVpnTargetNetworks === "") { + if (String(output.clientVpnTargetNetworks).trim() === "") { contents[_CVTN] = []; } else if (output[_cVTN] != null && output[_cVTN][_i] != null) { contents[_CVTN] = de_TargetNetworkSet(__getArrayIfSingleItem(output[_cVTN][_i]), context); @@ -67378,7 +67378,7 @@ const de_DescribeClientVpnTargetNetworksResult = ( */ const de_DescribeCoipPoolsResult = (output: any, context: __SerdeContext): DescribeCoipPoolsResult => { const contents: any = {}; - if (output.coipPoolSet === "") { + if (String(output.coipPoolSet).trim() === "") { contents[_CPo] = []; } else if (output[_cPS] != null && output[_cPS][_i] != null) { contents[_CPo] = de_CoipPoolSet(__getArrayIfSingleItem(output[_cPS][_i]), context); @@ -67405,7 +67405,7 @@ const de_DescribeConversionTaskList = (output: any, context: __SerdeContext): Co */ const de_DescribeConversionTasksResult = (output: any, context: __SerdeContext): DescribeConversionTasksResult => { const contents: any = {}; - if (output.conversionTasks === "") { + if (String(output.conversionTasks).trim() === "") { contents[_CTon] = []; } else if (output[_cTo] != null && output[_cTo][_i] != null) { contents[_CTon] = de_DescribeConversionTaskList(__getArrayIfSingleItem(output[_cTo][_i]), context); @@ -67418,7 +67418,7 @@ const de_DescribeConversionTasksResult = (output: any, context: __SerdeContext): */ const de_DescribeCustomerGatewaysResult = (output: any, context: __SerdeContext): DescribeCustomerGatewaysResult => { const contents: any = {}; - if (output.customerGatewaySet === "") { + if (String(output.customerGatewaySet).trim() === "") { contents[_CGus] = []; } else if (output[_cGSu] != null && output[_cGSu][_i] != null) { contents[_CGus] = de_CustomerGatewayList(__getArrayIfSingleItem(output[_cGSu][_i]), context); @@ -67437,7 +67437,7 @@ const de_DescribeDeclarativePoliciesReportsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.reportSet === "") { + if (String(output.reportSet).trim() === "") { contents[_Rep] = []; } else if (output[_rSe] != null && output[_rSe][_i] != null) { contents[_Rep] = de_DeclarativePoliciesReportList(__getArrayIfSingleItem(output[_rSe][_i]), context); @@ -67453,7 +67453,7 @@ const de_DescribeDhcpOptionsResult = (output: any, context: __SerdeContext): Des if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.dhcpOptionsSet === "") { + if (String(output.dhcpOptionsSet).trim() === "") { contents[_DOh] = []; } else if (output[_dOS] != null && output[_dOS][_i] != null) { contents[_DOh] = de_DhcpOptionsList(__getArrayIfSingleItem(output[_dOS][_i]), context); @@ -67469,7 +67469,7 @@ const de_DescribeEgressOnlyInternetGatewaysResult = ( context: __SerdeContext ): DescribeEgressOnlyInternetGatewaysResult => { const contents: any = {}; - if (output.egressOnlyInternetGatewaySet === "") { + if (String(output.egressOnlyInternetGatewaySet).trim() === "") { contents[_EOIGg] = []; } else if (output[_eOIGS] != null && output[_eOIGS][_i] != null) { contents[_EOIGg] = de_EgressOnlyInternetGatewayList(__getArrayIfSingleItem(output[_eOIGS][_i]), context); @@ -67485,7 +67485,7 @@ const de_DescribeEgressOnlyInternetGatewaysResult = ( */ const de_DescribeElasticGpusResult = (output: any, context: __SerdeContext): DescribeElasticGpusResult => { const contents: any = {}; - if (output.elasticGpuSet === "") { + if (String(output.elasticGpuSet).trim() === "") { contents[_EGSla] = []; } else if (output[_eGS] != null && output[_eGS][_i] != null) { contents[_EGSla] = de_ElasticGpuSet(__getArrayIfSingleItem(output[_eGS][_i]), context); @@ -67504,7 +67504,7 @@ const de_DescribeElasticGpusResult = (output: any, context: __SerdeContext): Des */ const de_DescribeExportImageTasksResult = (output: any, context: __SerdeContext): DescribeExportImageTasksResult => { const contents: any = {}; - if (output.exportImageTaskSet === "") { + if (String(output.exportImageTaskSet).trim() === "") { contents[_EITx] = []; } else if (output[_eITS] != null && output[_eITS][_i] != null) { contents[_EITx] = de_ExportImageTaskList(__getArrayIfSingleItem(output[_eITS][_i]), context); @@ -67520,7 +67520,7 @@ const de_DescribeExportImageTasksResult = (output: any, context: __SerdeContext) */ const de_DescribeExportTasksResult = (output: any, context: __SerdeContext): DescribeExportTasksResult => { const contents: any = {}; - if (output.exportTaskSet === "") { + if (String(output.exportTaskSet).trim() === "") { contents[_ETxpo] = []; } else if (output[_eTS] != null && output[_eTS][_i] != null) { contents[_ETxpo] = de_ExportTaskList(__getArrayIfSingleItem(output[_eTS][_i]), context); @@ -67533,7 +67533,7 @@ const de_DescribeExportTasksResult = (output: any, context: __SerdeContext): Des */ const de_DescribeFastLaunchImagesResult = (output: any, context: __SerdeContext): DescribeFastLaunchImagesResult => { const contents: any = {}; - if (output.fastLaunchImageSet === "") { + if (String(output.fastLaunchImageSet).trim() === "") { contents[_FLIa] = []; } else if (output[_fLISa] != null && output[_fLISa][_i] != null) { contents[_FLIa] = de_DescribeFastLaunchImagesSuccessSet(__getArrayIfSingleItem(output[_fLISa][_i]), context); @@ -67604,7 +67604,7 @@ const de_DescribeFastSnapshotRestoresResult = ( context: __SerdeContext ): DescribeFastSnapshotRestoresResult => { const contents: any = {}; - if (output.fastSnapshotRestoreSet === "") { + if (String(output.fastSnapshotRestoreSet).trim() === "") { contents[_FSR] = []; } else if (output[_fSRS] != null && output[_fSRS][_i] != null) { contents[_FSR] = de_DescribeFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_fSRS][_i]), context); @@ -67698,7 +67698,7 @@ const de_DescribeFleetError = (output: any, context: __SerdeContext): DescribeFl */ const de_DescribeFleetHistoryResult = (output: any, context: __SerdeContext): DescribeFleetHistoryResult => { const contents: any = {}; - if (output.historyRecordSet === "") { + if (String(output.historyRecordSet).trim() === "") { contents[_HRi] = []; } else if (output[_hRS] != null && output[_hRS][_i] != null) { contents[_HRi] = de_HistoryRecordSet(__getArrayIfSingleItem(output[_hRS][_i]), context); @@ -67723,7 +67723,7 @@ const de_DescribeFleetHistoryResult = (output: any, context: __SerdeContext): De */ const de_DescribeFleetInstancesResult = (output: any, context: __SerdeContext): DescribeFleetInstancesResult => { const contents: any = {}; - if (output.activeInstanceSet === "") { + if (String(output.activeInstanceSet).trim() === "") { contents[_AIct] = []; } else if (output[_aIS] != null && output[_aIS][_i] != null) { contents[_AIct] = de_ActiveInstanceSet(__getArrayIfSingleItem(output[_aIS][_i]), context); @@ -67759,7 +67759,7 @@ const de_DescribeFleetsInstances = (output: any, context: __SerdeContext): Descr if (output[_l] != null) { contents[_Li] = __expectString(output[_l]); } - if (output.instanceIds === "") { + if (String(output.instanceIds).trim() === "") { contents[_IIns] = []; } else if (output[_iIn] != null && output[_iIn][_i] != null) { contents[_IIns] = de_InstanceIdsSet(__getArrayIfSingleItem(output[_iIn][_i]), context); @@ -67792,7 +67792,7 @@ const de_DescribeFleetsResult = (output: any, context: __SerdeContext): Describe if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.fleetSet === "") { + if (String(output.fleetSet).trim() === "") { contents[_Fl] = []; } else if (output[_fS] != null && output[_fS][_i] != null) { contents[_Fl] = de_FleetSet(__getArrayIfSingleItem(output[_fS][_i]), context); @@ -67805,7 +67805,7 @@ const de_DescribeFleetsResult = (output: any, context: __SerdeContext): Describe */ const de_DescribeFlowLogsResult = (output: any, context: __SerdeContext): DescribeFlowLogsResult => { const contents: any = {}; - if (output.flowLogSet === "") { + if (String(output.flowLogSet).trim() === "") { contents[_FL] = []; } else if (output[_fLS] != null && output[_fLS][_i] != null) { contents[_FL] = de_FlowLogSet(__getArrayIfSingleItem(output[_fLS][_i]), context); @@ -67835,7 +67835,7 @@ const de_DescribeFpgaImageAttributeResult = ( */ const de_DescribeFpgaImagesResult = (output: any, context: __SerdeContext): DescribeFpgaImagesResult => { const contents: any = {}; - if (output.fpgaImageSet === "") { + if (String(output.fpgaImageSet).trim() === "") { contents[_FIp] = []; } else if (output[_fISp] != null && output[_fISp][_i] != null) { contents[_FIp] = de_FpgaImageList(__getArrayIfSingleItem(output[_fISp][_i]), context); @@ -67857,7 +67857,7 @@ const de_DescribeHostReservationOfferingsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.offeringSet === "") { + if (String(output.offeringSet).trim() === "") { contents[_OS] = []; } else if (output[_oS] != null && output[_oS][_i] != null) { contents[_OS] = de_HostOfferingSet(__getArrayIfSingleItem(output[_oS][_i]), context); @@ -67870,7 +67870,7 @@ const de_DescribeHostReservationOfferingsResult = ( */ const de_DescribeHostReservationsResult = (output: any, context: __SerdeContext): DescribeHostReservationsResult => { const contents: any = {}; - if (output.hostReservationSet === "") { + if (String(output.hostReservationSet).trim() === "") { contents[_HRS] = []; } else if (output[_hRSo] != null && output[_hRSo][_i] != null) { contents[_HRS] = de_HostReservationSet(__getArrayIfSingleItem(output[_hRSo][_i]), context); @@ -67886,7 +67886,7 @@ const de_DescribeHostReservationsResult = (output: any, context: __SerdeContext) */ const de_DescribeHostsResult = (output: any, context: __SerdeContext): DescribeHostsResult => { const contents: any = {}; - if (output.hostSet === "") { + if (String(output.hostSet).trim() === "") { contents[_Ho] = []; } else if (output[_hS] != null && output[_hS][_i] != null) { contents[_Ho] = de_HostList(__getArrayIfSingleItem(output[_hS][_i]), context); @@ -67905,7 +67905,7 @@ const de_DescribeIamInstanceProfileAssociationsResult = ( context: __SerdeContext ): DescribeIamInstanceProfileAssociationsResult => { const contents: any = {}; - if (output.iamInstanceProfileAssociationSet === "") { + if (String(output.iamInstanceProfileAssociationSet).trim() === "") { contents[_IIPAa] = []; } else if (output[_iIPAS] != null && output[_iIPAS][_i] != null) { contents[_IIPAa] = de_IamInstanceProfileAssociationSet(__getArrayIfSingleItem(output[_iIPAS][_i]), context); @@ -67921,7 +67921,7 @@ const de_DescribeIamInstanceProfileAssociationsResult = ( */ const de_DescribeIdentityIdFormatResult = (output: any, context: __SerdeContext): DescribeIdentityIdFormatResult => { const contents: any = {}; - if (output.statusSet === "") { + if (String(output.statusSet).trim() === "") { contents[_Status] = []; } else if (output[_sSt] != null && output[_sSt][_i] != null) { contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); @@ -67934,7 +67934,7 @@ const de_DescribeIdentityIdFormatResult = (output: any, context: __SerdeContext) */ const de_DescribeIdFormatResult = (output: any, context: __SerdeContext): DescribeIdFormatResult => { const contents: any = {}; - if (output.statusSet === "") { + if (String(output.statusSet).trim() === "") { contents[_Status] = []; } else if (output[_sSt] != null && output[_sSt][_i] != null) { contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); @@ -67950,7 +67950,7 @@ const de_DescribeImageReferencesResult = (output: any, context: __SerdeContext): if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.imageReferenceSet === "") { + if (String(output.imageReferenceSet).trim() === "") { contents[_IRm] = []; } else if (output[_iRS] != null && output[_iRS][_i] != null) { contents[_IRm] = de_ImageReferenceList(__getArrayIfSingleItem(output[_iRS][_i]), context); @@ -67966,7 +67966,7 @@ const de_DescribeImagesResult = (output: any, context: __SerdeContext): Describe if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.imagesSet === "") { + if (String(output.imagesSet).trim() === "") { contents[_Ima] = []; } else if (output[_iSm] != null && output[_iSm][_i] != null) { contents[_Ima] = de_ImageList(__getArrayIfSingleItem(output[_iSm][_i]), context); @@ -67985,7 +67985,7 @@ const de_DescribeImageUsageReportEntriesResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.imageUsageReportEntrySet === "") { + if (String(output.imageUsageReportEntrySet).trim() === "") { contents[_IURE] = []; } else if (output[_iURES] != null && output[_iURES][_i] != null) { contents[_IURE] = de_ImageUsageReportEntryList(__getArrayIfSingleItem(output[_iURES][_i]), context); @@ -68001,7 +68001,7 @@ const de_DescribeImageUsageReportsResult = (output: any, context: __SerdeContext if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.imageUsageReportSet === "") { + if (String(output.imageUsageReportSet).trim() === "") { contents[_IUR] = []; } else if (output[_iURS] != null && output[_iURS][_i] != null) { contents[_IUR] = de_ImageUsageReportList(__getArrayIfSingleItem(output[_iURS][_i]), context); @@ -68014,7 +68014,7 @@ const de_DescribeImageUsageReportsResult = (output: any, context: __SerdeContext */ const de_DescribeImportImageTasksResult = (output: any, context: __SerdeContext): DescribeImportImageTasksResult => { const contents: any = {}; - if (output.importImageTaskSet === "") { + if (String(output.importImageTaskSet).trim() === "") { contents[_IIT] = []; } else if (output[_iITS] != null && output[_iITS][_i] != null) { contents[_IIT] = de_ImportImageTaskList(__getArrayIfSingleItem(output[_iITS][_i]), context); @@ -68033,7 +68033,7 @@ const de_DescribeImportSnapshotTasksResult = ( context: __SerdeContext ): DescribeImportSnapshotTasksResult => { const contents: any = {}; - if (output.importSnapshotTaskSet === "") { + if (String(output.importSnapshotTaskSet).trim() === "") { contents[_IST] = []; } else if (output[_iSTS] != null && output[_iSTS][_i] != null) { contents[_IST] = de_ImportSnapshotTaskList(__getArrayIfSingleItem(output[_iSTS][_i]), context); @@ -68052,7 +68052,7 @@ const de_DescribeInstanceConnectEndpointsResult = ( context: __SerdeContext ): DescribeInstanceConnectEndpointsResult => { const contents: any = {}; - if (output.instanceConnectEndpointSet === "") { + if (String(output.instanceConnectEndpointSet).trim() === "") { contents[_ICEn] = []; } else if (output[_iCES] != null && output[_iCES][_i] != null) { contents[_ICEn] = de_InstanceConnectEndpointSet(__getArrayIfSingleItem(output[_iCES][_i]), context); @@ -68071,7 +68071,7 @@ const de_DescribeInstanceCreditSpecificationsResult = ( context: __SerdeContext ): DescribeInstanceCreditSpecificationsResult => { const contents: any = {}; - if (output.instanceCreditSpecificationSet === "") { + if (String(output.instanceCreditSpecificationSet).trim() === "") { contents[_ICS] = []; } else if (output[_iCSS] != null && output[_iCSS][_i] != null) { contents[_ICS] = de_InstanceCreditSpecificationList(__getArrayIfSingleItem(output[_iCSS][_i]), context); @@ -68104,7 +68104,7 @@ const de_DescribeInstanceEventWindowsResult = ( context: __SerdeContext ): DescribeInstanceEventWindowsResult => { const contents: any = {}; - if (output.instanceEventWindowSet === "") { + if (String(output.instanceEventWindowSet).trim() === "") { contents[_IEWn] = []; } else if (output[_iEWSn] != null && output[_iEWSn][_i] != null) { contents[_IEWn] = de_InstanceEventWindowSet(__getArrayIfSingleItem(output[_iEWSn][_i]), context); @@ -68123,7 +68123,7 @@ const de_DescribeInstanceImageMetadataResult = ( context: __SerdeContext ): DescribeInstanceImageMetadataResult => { const contents: any = {}; - if (output.instanceImageMetadataSet === "") { + if (String(output.instanceImageMetadataSet).trim() === "") { contents[_IIM] = []; } else if (output[_iIMS] != null && output[_iIMS][_i] != null) { contents[_IIM] = de_InstanceImageMetadataList(__getArrayIfSingleItem(output[_iIMS][_i]), context); @@ -68142,7 +68142,7 @@ const de_DescribeInstancesResult = (output: any, context: __SerdeContext): Descr if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.reservationSet === "") { + if (String(output.reservationSet).trim() === "") { contents[_Rese] = []; } else if (output[_rSes] != null && output[_rSes][_i] != null) { contents[_Rese] = de_ReservationList(__getArrayIfSingleItem(output[_rSes][_i]), context); @@ -68155,7 +68155,7 @@ const de_DescribeInstancesResult = (output: any, context: __SerdeContext): Descr */ const de_DescribeInstanceStatusResult = (output: any, context: __SerdeContext): DescribeInstanceStatusResult => { const contents: any = {}; - if (output.instanceStatusSet === "") { + if (String(output.instanceStatusSet).trim() === "") { contents[_ISns] = []; } else if (output[_iSS] != null && output[_iSS][_i] != null) { contents[_ISns] = de_InstanceStatusList(__getArrayIfSingleItem(output[_iSS][_i]), context); @@ -68171,7 +68171,7 @@ const de_DescribeInstanceStatusResult = (output: any, context: __SerdeContext): */ const de_DescribeInstanceTopologyResult = (output: any, context: __SerdeContext): DescribeInstanceTopologyResult => { const contents: any = {}; - if (output.instanceSet === "") { + if (String(output.instanceSet).trim() === "") { contents[_In] = []; } else if (output[_iSns] != null && output[_iSns][_i] != null) { contents[_In] = de_InstanceSet(__getArrayIfSingleItem(output[_iSns][_i]), context); @@ -68190,7 +68190,7 @@ const de_DescribeInstanceTypeOfferingsResult = ( context: __SerdeContext ): DescribeInstanceTypeOfferingsResult => { const contents: any = {}; - if (output.instanceTypeOfferingSet === "") { + if (String(output.instanceTypeOfferingSet).trim() === "") { contents[_ITO] = []; } else if (output[_iTOS] != null && output[_iTOS][_i] != null) { contents[_ITO] = de_InstanceTypeOfferingsList(__getArrayIfSingleItem(output[_iTOS][_i]), context); @@ -68206,7 +68206,7 @@ const de_DescribeInstanceTypeOfferingsResult = ( */ const de_DescribeInstanceTypesResult = (output: any, context: __SerdeContext): DescribeInstanceTypesResult => { const contents: any = {}; - if (output.instanceTypeSet === "") { + if (String(output.instanceTypeSet).trim() === "") { contents[_ITnst] = []; } else if (output[_iTS] != null && output[_iTS][_i] != null) { contents[_ITnst] = de_InstanceTypeInfoList(__getArrayIfSingleItem(output[_iTS][_i]), context); @@ -68222,7 +68222,7 @@ const de_DescribeInstanceTypesResult = (output: any, context: __SerdeContext): D */ const de_DescribeInternetGatewaysResult = (output: any, context: __SerdeContext): DescribeInternetGatewaysResult => { const contents: any = {}; - if (output.internetGatewaySet === "") { + if (String(output.internetGatewaySet).trim() === "") { contents[_IGnt] = []; } else if (output[_iGS] != null && output[_iGS][_i] != null) { contents[_IGnt] = de_InternetGatewayList(__getArrayIfSingleItem(output[_iGS][_i]), context); @@ -68238,7 +68238,7 @@ const de_DescribeInternetGatewaysResult = (output: any, context: __SerdeContext) */ const de_DescribeIpamByoasnResult = (output: any, context: __SerdeContext): DescribeIpamByoasnResult => { const contents: any = {}; - if (output.byoasnSet === "") { + if (String(output.byoasnSet).trim() === "") { contents[_Byoa] = []; } else if (output[_bS] != null && output[_bS][_i] != null) { contents[_Byoa] = de_ByoasnSet(__getArrayIfSingleItem(output[_bS][_i]), context); @@ -68260,7 +68260,7 @@ const de_DescribeIpamExternalResourceVerificationTokensResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.ipamExternalResourceVerificationTokenSet === "") { + if (String(output.ipamExternalResourceVerificationTokenSet).trim() === "") { contents[_IERVTp] = []; } else if (output[_iERVTS] != null && output[_iERVTS][_i] != null) { contents[_IERVTp] = de_IpamExternalResourceVerificationTokenSet( @@ -68279,7 +68279,7 @@ const de_DescribeIpamPoolsResult = (output: any, context: __SerdeContext): Descr if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.ipamPoolSet === "") { + if (String(output.ipamPoolSet).trim() === "") { contents[_IPpam] = []; } else if (output[_iPS] != null && output[_iPS][_i] != null) { contents[_IPpam] = de_IpamPoolSet(__getArrayIfSingleItem(output[_iPS][_i]), context); @@ -68295,7 +68295,7 @@ const de_DescribeIpamResourceDiscoveriesResult = ( context: __SerdeContext ): DescribeIpamResourceDiscoveriesResult => { const contents: any = {}; - if (output.ipamResourceDiscoverySet === "") { + if (String(output.ipamResourceDiscoverySet).trim() === "") { contents[_IRDp] = []; } else if (output[_iRDS] != null && output[_iRDS][_i] != null) { contents[_IRDp] = de_IpamResourceDiscoverySet(__getArrayIfSingleItem(output[_iRDS][_i]), context); @@ -68314,7 +68314,7 @@ const de_DescribeIpamResourceDiscoveryAssociationsResult = ( context: __SerdeContext ): DescribeIpamResourceDiscoveryAssociationsResult => { const contents: any = {}; - if (output.ipamResourceDiscoveryAssociationSet === "") { + if (String(output.ipamResourceDiscoveryAssociationSet).trim() === "") { contents[_IRDAp] = []; } else if (output[_iRDAS] != null && output[_iRDAS][_i] != null) { contents[_IRDAp] = de_IpamResourceDiscoveryAssociationSet(__getArrayIfSingleItem(output[_iRDAS][_i]), context); @@ -68333,7 +68333,7 @@ const de_DescribeIpamScopesResult = (output: any, context: __SerdeContext): Desc if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.ipamScopeSet === "") { + if (String(output.ipamScopeSet).trim() === "") { contents[_ISpam] = []; } else if (output[_iSSp] != null && output[_iSSp][_i] != null) { contents[_ISpam] = de_IpamScopeSet(__getArrayIfSingleItem(output[_iSSp][_i]), context); @@ -68349,7 +68349,7 @@ const de_DescribeIpamsResult = (output: any, context: __SerdeContext): DescribeI if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.ipamSet === "") { + if (String(output.ipamSet).trim() === "") { contents[_Ipam] = []; } else if (output[_iSpa] != null && output[_iSpa][_i] != null) { contents[_Ipam] = de_IpamSet(__getArrayIfSingleItem(output[_iSpa][_i]), context); @@ -68362,7 +68362,7 @@ const de_DescribeIpamsResult = (output: any, context: __SerdeContext): DescribeI */ const de_DescribeIpv6PoolsResult = (output: any, context: __SerdeContext): DescribeIpv6PoolsResult => { const contents: any = {}; - if (output.ipv6PoolSet === "") { + if (String(output.ipv6PoolSet).trim() === "") { contents[_IPpvo] = []; } else if (output[_iPSp] != null && output[_iPSp][_i] != null) { contents[_IPpvo] = de_Ipv6PoolSet(__getArrayIfSingleItem(output[_iPSp][_i]), context); @@ -68378,7 +68378,7 @@ const de_DescribeIpv6PoolsResult = (output: any, context: __SerdeContext): Descr */ const de_DescribeKeyPairsResult = (output: any, context: __SerdeContext): DescribeKeyPairsResult => { const contents: any = {}; - if (output.keySet === "") { + if (String(output.keySet).trim() === "") { contents[_KP] = []; } else if (output[_kS] != null && output[_kS][_i] != null) { contents[_KP] = de_KeyPairList(__getArrayIfSingleItem(output[_kS][_i]), context); @@ -68391,7 +68391,7 @@ const de_DescribeKeyPairsResult = (output: any, context: __SerdeContext): Descri */ const de_DescribeLaunchTemplatesResult = (output: any, context: __SerdeContext): DescribeLaunchTemplatesResult => { const contents: any = {}; - if (output.launchTemplates === "") { + if (String(output.launchTemplates).trim() === "") { contents[_LTau] = []; } else if (output[_lTa] != null && output[_lTa][_i] != null) { contents[_LTau] = de_LaunchTemplateSet(__getArrayIfSingleItem(output[_lTa][_i]), context); @@ -68410,7 +68410,7 @@ const de_DescribeLaunchTemplateVersionsResult = ( context: __SerdeContext ): DescribeLaunchTemplateVersionsResult => { const contents: any = {}; - if (output.launchTemplateVersionSet === "") { + if (String(output.launchTemplateVersionSet).trim() === "") { contents[_LTVa] = []; } else if (output[_lTVS] != null && output[_lTVS][_i] != null) { contents[_LTVa] = de_LaunchTemplateVersionSet(__getArrayIfSingleItem(output[_lTVS][_i]), context); @@ -68429,7 +68429,7 @@ const de_DescribeLocalGatewayRouteTablesResult = ( context: __SerdeContext ): DescribeLocalGatewayRouteTablesResult => { const contents: any = {}; - if (output.localGatewayRouteTableSet === "") { + if (String(output.localGatewayRouteTableSet).trim() === "") { contents[_LGRTo] = []; } else if (output[_lGRTS] != null && output[_lGRTS][_i] != null) { contents[_LGRTo] = de_LocalGatewayRouteTableSet(__getArrayIfSingleItem(output[_lGRTS][_i]), context); @@ -68448,7 +68448,7 @@ const de_DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult = context: __SerdeContext ): DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult => { const contents: any = {}; - if (output.localGatewayRouteTableVirtualInterfaceGroupAssociationSet === "") { + if (String(output.localGatewayRouteTableVirtualInterfaceGroupAssociationSet).trim() === "") { contents[_LGRTVIGAo] = []; } else if (output[_lGRTVIGAS] != null && output[_lGRTVIGAS][_i] != null) { contents[_LGRTVIGAo] = de_LocalGatewayRouteTableVirtualInterfaceGroupAssociationSet( @@ -68470,7 +68470,7 @@ const de_DescribeLocalGatewayRouteTableVpcAssociationsResult = ( context: __SerdeContext ): DescribeLocalGatewayRouteTableVpcAssociationsResult => { const contents: any = {}; - if (output.localGatewayRouteTableVpcAssociationSet === "") { + if (String(output.localGatewayRouteTableVpcAssociationSet).trim() === "") { contents[_LGRTVAo] = []; } else if (output[_lGRTVAS] != null && output[_lGRTVAS][_i] != null) { contents[_LGRTVAo] = de_LocalGatewayRouteTableVpcAssociationSet( @@ -68489,7 +68489,7 @@ const de_DescribeLocalGatewayRouteTableVpcAssociationsResult = ( */ const de_DescribeLocalGatewaysResult = (output: any, context: __SerdeContext): DescribeLocalGatewaysResult => { const contents: any = {}; - if (output.localGatewaySet === "") { + if (String(output.localGatewaySet).trim() === "") { contents[_LGoc] = []; } else if (output[_lGS] != null && output[_lGS][_i] != null) { contents[_LGoc] = de_LocalGatewaySet(__getArrayIfSingleItem(output[_lGS][_i]), context); @@ -68508,7 +68508,7 @@ const de_DescribeLocalGatewayVirtualInterfaceGroupsResult = ( context: __SerdeContext ): DescribeLocalGatewayVirtualInterfaceGroupsResult => { const contents: any = {}; - if (output.localGatewayVirtualInterfaceGroupSet === "") { + if (String(output.localGatewayVirtualInterfaceGroupSet).trim() === "") { contents[_LGVIGo] = []; } else if (output[_lGVIGS] != null && output[_lGVIGS][_i] != null) { contents[_LGVIGo] = de_LocalGatewayVirtualInterfaceGroupSet(__getArrayIfSingleItem(output[_lGVIGS][_i]), context); @@ -68527,7 +68527,7 @@ const de_DescribeLocalGatewayVirtualInterfacesResult = ( context: __SerdeContext ): DescribeLocalGatewayVirtualInterfacesResult => { const contents: any = {}; - if (output.localGatewayVirtualInterfaceSet === "") { + if (String(output.localGatewayVirtualInterfaceSet).trim() === "") { contents[_LGVIo] = []; } else if (output[_lGVIS] != null && output[_lGVIS][_i] != null) { contents[_LGVIo] = de_LocalGatewayVirtualInterfaceSet(__getArrayIfSingleItem(output[_lGVIS][_i]), context); @@ -68543,7 +68543,7 @@ const de_DescribeLocalGatewayVirtualInterfacesResult = ( */ const de_DescribeLockedSnapshotsResult = (output: any, context: __SerdeContext): DescribeLockedSnapshotsResult => { const contents: any = {}; - if (output.snapshotSet === "") { + if (String(output.snapshotSet).trim() === "") { contents[_Sn] = []; } else if (output[_sS] != null && output[_sS][_i] != null) { contents[_Sn] = de_LockedSnapshotsInfoList(__getArrayIfSingleItem(output[_sS][_i]), context); @@ -68559,7 +68559,7 @@ const de_DescribeLockedSnapshotsResult = (output: any, context: __SerdeContext): */ const de_DescribeMacHostsResult = (output: any, context: __SerdeContext): DescribeMacHostsResult => { const contents: any = {}; - if (output.macHostSet === "") { + if (String(output.macHostSet).trim() === "") { contents[_MHa] = []; } else if (output[_mHS] != null && output[_mHS][_i] != null) { contents[_MHa] = de_MacHostList(__getArrayIfSingleItem(output[_mHS][_i]), context); @@ -68578,7 +68578,7 @@ const de_DescribeMacModificationTasksResult = ( context: __SerdeContext ): DescribeMacModificationTasksResult => { const contents: any = {}; - if (output.macModificationTaskSet === "") { + if (String(output.macModificationTaskSet).trim() === "") { contents[_MMTa] = []; } else if (output[_mMTS] != null && output[_mMTS][_i] != null) { contents[_MMTa] = de_MacModificationTaskList(__getArrayIfSingleItem(output[_mMTS][_i]), context); @@ -68600,7 +68600,7 @@ const de_DescribeManagedPrefixListsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.prefixListSet === "") { + if (String(output.prefixListSet).trim() === "") { contents[_PLre] = []; } else if (output[_pLS] != null && output[_pLS][_i] != null) { contents[_PLre] = de_ManagedPrefixListSet(__getArrayIfSingleItem(output[_pLS][_i]), context); @@ -68613,7 +68613,7 @@ const de_DescribeManagedPrefixListsResult = ( */ const de_DescribeMovingAddressesResult = (output: any, context: __SerdeContext): DescribeMovingAddressesResult => { const contents: any = {}; - if (output.movingAddressStatusSet === "") { + if (String(output.movingAddressStatusSet).trim() === "") { contents[_MAS] = []; } else if (output[_mASS] != null && output[_mASS][_i] != null) { contents[_MAS] = de_MovingAddressStatusSet(__getArrayIfSingleItem(output[_mASS][_i]), context); @@ -68629,7 +68629,7 @@ const de_DescribeMovingAddressesResult = (output: any, context: __SerdeContext): */ const de_DescribeNatGatewaysResult = (output: any, context: __SerdeContext): DescribeNatGatewaysResult => { const contents: any = {}; - if (output.natGatewaySet === "") { + if (String(output.natGatewaySet).trim() === "") { contents[_NGa] = []; } else if (output[_nGS] != null && output[_nGS][_i] != null) { contents[_NGa] = de_NatGatewayList(__getArrayIfSingleItem(output[_nGS][_i]), context); @@ -68645,7 +68645,7 @@ const de_DescribeNatGatewaysResult = (output: any, context: __SerdeContext): Des */ const de_DescribeNetworkAclsResult = (output: any, context: __SerdeContext): DescribeNetworkAclsResult => { const contents: any = {}; - if (output.networkAclSet === "") { + if (String(output.networkAclSet).trim() === "") { contents[_NAe] = []; } else if (output[_nAS] != null && output[_nAS][_i] != null) { contents[_NAe] = de_NetworkAclList(__getArrayIfSingleItem(output[_nAS][_i]), context); @@ -68664,7 +68664,7 @@ const de_DescribeNetworkInsightsAccessScopeAnalysesResult = ( context: __SerdeContext ): DescribeNetworkInsightsAccessScopeAnalysesResult => { const contents: any = {}; - if (output.networkInsightsAccessScopeAnalysisSet === "") { + if (String(output.networkInsightsAccessScopeAnalysisSet).trim() === "") { contents[_NIASA] = []; } else if (output[_nIASAS] != null && output[_nIASAS][_i] != null) { contents[_NIASA] = de_NetworkInsightsAccessScopeAnalysisList(__getArrayIfSingleItem(output[_nIASAS][_i]), context); @@ -68683,7 +68683,7 @@ const de_DescribeNetworkInsightsAccessScopesResult = ( context: __SerdeContext ): DescribeNetworkInsightsAccessScopesResult => { const contents: any = {}; - if (output.networkInsightsAccessScopeSet === "") { + if (String(output.networkInsightsAccessScopeSet).trim() === "") { contents[_NIASe] = []; } else if (output[_nIASS] != null && output[_nIASS][_i] != null) { contents[_NIASe] = de_NetworkInsightsAccessScopeList(__getArrayIfSingleItem(output[_nIASS][_i]), context); @@ -68702,7 +68702,7 @@ const de_DescribeNetworkInsightsAnalysesResult = ( context: __SerdeContext ): DescribeNetworkInsightsAnalysesResult => { const contents: any = {}; - if (output.networkInsightsAnalysisSet === "") { + if (String(output.networkInsightsAnalysisSet).trim() === "") { contents[_NIA] = []; } else if (output[_nIASe] != null && output[_nIASe][_i] != null) { contents[_NIA] = de_NetworkInsightsAnalysisList(__getArrayIfSingleItem(output[_nIASe][_i]), context); @@ -68721,7 +68721,7 @@ const de_DescribeNetworkInsightsPathsResult = ( context: __SerdeContext ): DescribeNetworkInsightsPathsResult => { const contents: any = {}; - if (output.networkInsightsPathSet === "") { + if (String(output.networkInsightsPathSet).trim() === "") { contents[_NIPe] = []; } else if (output[_nIPS] != null && output[_nIPS][_i] != null) { contents[_NIPe] = de_NetworkInsightsPathList(__getArrayIfSingleItem(output[_nIPS][_i]), context); @@ -68746,7 +68746,7 @@ const de_DescribeNetworkInterfaceAttributeResult = ( if (output[_de] != null) { contents[_De] = de_AttributeValue(output[_de], context); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -68771,7 +68771,7 @@ const de_DescribeNetworkInterfacePermissionsResult = ( context: __SerdeContext ): DescribeNetworkInterfacePermissionsResult => { const contents: any = {}; - if (output.networkInterfacePermissions === "") { + if (String(output.networkInterfacePermissions).trim() === "") { contents[_NIPet] = []; } else if (output[_nIPe] != null && output[_nIPe][_i] != null) { contents[_NIPet] = de_NetworkInterfacePermissionList(__getArrayIfSingleItem(output[_nIPe][_i]), context); @@ -68787,7 +68787,7 @@ const de_DescribeNetworkInterfacePermissionsResult = ( */ const de_DescribeNetworkInterfacesResult = (output: any, context: __SerdeContext): DescribeNetworkInterfacesResult => { const contents: any = {}; - if (output.networkInterfaceSet === "") { + if (String(output.networkInterfaceSet).trim() === "") { contents[_NI] = []; } else if (output[_nIS] != null && output[_nIS][_i] != null) { contents[_NI] = de_NetworkInterfaceList(__getArrayIfSingleItem(output[_nIS][_i]), context); @@ -68803,7 +68803,7 @@ const de_DescribeNetworkInterfacesResult = (output: any, context: __SerdeContext */ const de_DescribeOutpostLagsResult = (output: any, context: __SerdeContext): DescribeOutpostLagsResult => { const contents: any = {}; - if (output.outpostLagSet === "") { + if (String(output.outpostLagSet).trim() === "") { contents[_OL] = []; } else if (output[_oLS] != null && output[_oLS][_i] != null) { contents[_OL] = de_OutpostLagSet(__getArrayIfSingleItem(output[_oLS][_i]), context); @@ -68819,7 +68819,7 @@ const de_DescribeOutpostLagsResult = (output: any, context: __SerdeContext): Des */ const de_DescribePlacementGroupsResult = (output: any, context: __SerdeContext): DescribePlacementGroupsResult => { const contents: any = {}; - if (output.placementGroupSet === "") { + if (String(output.placementGroupSet).trim() === "") { contents[_PGl] = []; } else if (output[_pGS] != null && output[_pGS][_i] != null) { contents[_PGl] = de_PlacementGroupList(__getArrayIfSingleItem(output[_pGS][_i]), context); @@ -68835,7 +68835,7 @@ const de_DescribePrefixListsResult = (output: any, context: __SerdeContext): Des if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.prefixListSet === "") { + if (String(output.prefixListSet).trim() === "") { contents[_PLre] = []; } else if (output[_pLS] != null && output[_pLS][_i] != null) { contents[_PLre] = de_PrefixListSet(__getArrayIfSingleItem(output[_pLS][_i]), context); @@ -68848,7 +68848,7 @@ const de_DescribePrefixListsResult = (output: any, context: __SerdeContext): Des */ const de_DescribePrincipalIdFormatResult = (output: any, context: __SerdeContext): DescribePrincipalIdFormatResult => { const contents: any = {}; - if (output.principalSet === "") { + if (String(output.principalSet).trim() === "") { contents[_Princ] = []; } else if (output[_pSri] != null && output[_pSri][_i] != null) { contents[_Princ] = de_PrincipalIdFormatList(__getArrayIfSingleItem(output[_pSri][_i]), context); @@ -68864,7 +68864,7 @@ const de_DescribePrincipalIdFormatResult = (output: any, context: __SerdeContext */ const de_DescribePublicIpv4PoolsResult = (output: any, context: __SerdeContext): DescribePublicIpv4PoolsResult => { const contents: any = {}; - if (output.publicIpv4PoolSet === "") { + if (String(output.publicIpv4PoolSet).trim() === "") { contents[_PIPu] = []; } else if (output[_pIPS] != null && output[_pIPS][_i] != null) { contents[_PIPu] = de_PublicIpv4PoolSet(__getArrayIfSingleItem(output[_pIPS][_i]), context); @@ -68880,7 +68880,7 @@ const de_DescribePublicIpv4PoolsResult = (output: any, context: __SerdeContext): */ const de_DescribeRegionsResult = (output: any, context: __SerdeContext): DescribeRegionsResult => { const contents: any = {}; - if (output.regionInfo === "") { + if (String(output.regionInfo).trim() === "") { contents[_Reg] = []; } else if (output[_rIe] != null && output[_rIe][_i] != null) { contents[_Reg] = de_RegionList(__getArrayIfSingleItem(output[_rIe][_i]), context); @@ -68896,7 +68896,7 @@ const de_DescribeReplaceRootVolumeTasksResult = ( context: __SerdeContext ): DescribeReplaceRootVolumeTasksResult => { const contents: any = {}; - if (output.replaceRootVolumeTaskSet === "") { + if (String(output.replaceRootVolumeTaskSet).trim() === "") { contents[_RRVTe] = []; } else if (output[_rRVTS] != null && output[_rRVTS][_i] != null) { contents[_RRVTe] = de_ReplaceRootVolumeTasks(__getArrayIfSingleItem(output[_rRVTS][_i]), context); @@ -68915,7 +68915,7 @@ const de_DescribeReservedInstancesListingsResult = ( context: __SerdeContext ): DescribeReservedInstancesListingsResult => { const contents: any = {}; - if (output.reservedInstancesListingsSet === "") { + if (String(output.reservedInstancesListingsSet).trim() === "") { contents[_RIL] = []; } else if (output[_rILS] != null && output[_rILS][_i] != null) { contents[_RIL] = de_ReservedInstancesListingList(__getArrayIfSingleItem(output[_rILS][_i]), context); @@ -68934,7 +68934,7 @@ const de_DescribeReservedInstancesModificationsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.reservedInstancesModificationsSet === "") { + if (String(output.reservedInstancesModificationsSet).trim() === "") { contents[_RIM] = []; } else if (output[_rIMS] != null && output[_rIMS][_i] != null) { contents[_RIM] = de_ReservedInstancesModificationList(__getArrayIfSingleItem(output[_rIMS][_i]), context); @@ -68953,7 +68953,7 @@ const de_DescribeReservedInstancesOfferingsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.reservedInstancesOfferingsSet === "") { + if (String(output.reservedInstancesOfferingsSet).trim() === "") { contents[_RIO] = []; } else if (output[_rIOS] != null && output[_rIOS][_i] != null) { contents[_RIO] = de_ReservedInstancesOfferingList(__getArrayIfSingleItem(output[_rIOS][_i]), context); @@ -68966,7 +68966,7 @@ const de_DescribeReservedInstancesOfferingsResult = ( */ const de_DescribeReservedInstancesResult = (output: any, context: __SerdeContext): DescribeReservedInstancesResult => { const contents: any = {}; - if (output.reservedInstancesSet === "") { + if (String(output.reservedInstancesSet).trim() === "") { contents[_RIese] = []; } else if (output[_rIS] != null && output[_rIS][_i] != null) { contents[_RIese] = de_ReservedInstancesList(__getArrayIfSingleItem(output[_rIS][_i]), context); @@ -68982,7 +68982,7 @@ const de_DescribeRouteServerEndpointsResult = ( context: __SerdeContext ): DescribeRouteServerEndpointsResult => { const contents: any = {}; - if (output.routeServerEndpointSet === "") { + if (String(output.routeServerEndpointSet).trim() === "") { contents[_RSEo] = []; } else if (output[_rSES] != null && output[_rSES][_i] != null) { contents[_RSEo] = de_RouteServerEndpointsList(__getArrayIfSingleItem(output[_rSES][_i]), context); @@ -68998,7 +68998,7 @@ const de_DescribeRouteServerEndpointsResult = ( */ const de_DescribeRouteServerPeersResult = (output: any, context: __SerdeContext): DescribeRouteServerPeersResult => { const contents: any = {}; - if (output.routeServerPeerSet === "") { + if (String(output.routeServerPeerSet).trim() === "") { contents[_RSPo] = []; } else if (output[_rSPS] != null && output[_rSPS][_i] != null) { contents[_RSPo] = de_RouteServerPeersList(__getArrayIfSingleItem(output[_rSPS][_i]), context); @@ -69014,7 +69014,7 @@ const de_DescribeRouteServerPeersResult = (output: any, context: __SerdeContext) */ const de_DescribeRouteServersResult = (output: any, context: __SerdeContext): DescribeRouteServersResult => { const contents: any = {}; - if (output.routeServerSet === "") { + if (String(output.routeServerSet).trim() === "") { contents[_RSou] = []; } else if (output[_rSSo] != null && output[_rSSo][_i] != null) { contents[_RSou] = de_RouteServersList(__getArrayIfSingleItem(output[_rSSo][_i]), context); @@ -69030,7 +69030,7 @@ const de_DescribeRouteServersResult = (output: any, context: __SerdeContext): De */ const de_DescribeRouteTablesResult = (output: any, context: __SerdeContext): DescribeRouteTablesResult => { const contents: any = {}; - if (output.routeTableSet === "") { + if (String(output.routeTableSet).trim() === "") { contents[_RTou] = []; } else if (output[_rTS] != null && output[_rTS][_i] != null) { contents[_RTou] = de_RouteTableList(__getArrayIfSingleItem(output[_rTS][_i]), context); @@ -69052,7 +69052,7 @@ const de_DescribeScheduledInstanceAvailabilityResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.scheduledInstanceAvailabilitySet === "") { + if (String(output.scheduledInstanceAvailabilitySet).trim() === "") { contents[_SIAS] = []; } else if (output[_sIAS] != null && output[_sIAS][_i] != null) { contents[_SIAS] = de_ScheduledInstanceAvailabilitySet(__getArrayIfSingleItem(output[_sIAS][_i]), context); @@ -69071,7 +69071,7 @@ const de_DescribeScheduledInstancesResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.scheduledInstanceSet === "") { + if (String(output.scheduledInstanceSet).trim() === "") { contents[_SIS] = []; } else if (output[_sIS] != null && output[_sIS][_i] != null) { contents[_SIS] = de_ScheduledInstanceSet(__getArrayIfSingleItem(output[_sIS][_i]), context); @@ -69087,7 +69087,7 @@ const de_DescribeSecurityGroupReferencesResult = ( context: __SerdeContext ): DescribeSecurityGroupReferencesResult => { const contents: any = {}; - if (output.securityGroupReferenceSet === "") { + if (String(output.securityGroupReferenceSet).trim() === "") { contents[_SGRSe] = []; } else if (output[_sGRSe] != null && output[_sGRSe][_i] != null) { contents[_SGRSe] = de_SecurityGroupReferences(__getArrayIfSingleItem(output[_sGRSe][_i]), context); @@ -69103,7 +69103,7 @@ const de_DescribeSecurityGroupRulesResult = ( context: __SerdeContext ): DescribeSecurityGroupRulesResult => { const contents: any = {}; - if (output.securityGroupRuleSet === "") { + if (String(output.securityGroupRuleSet).trim() === "") { contents[_SGR] = []; } else if (output[_sGRS] != null && output[_sGRS][_i] != null) { contents[_SGR] = de_SecurityGroupRuleList(__getArrayIfSingleItem(output[_sGRS][_i]), context); @@ -69122,7 +69122,7 @@ const de_DescribeSecurityGroupsResult = (output: any, context: __SerdeContext): if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.securityGroupInfo === "") { + if (String(output.securityGroupInfo).trim() === "") { contents[_SG] = []; } else if (output[_sGIec] != null && output[_sGIec][_i] != null) { contents[_SG] = de_SecurityGroupList(__getArrayIfSingleItem(output[_sGIec][_i]), context); @@ -69138,7 +69138,7 @@ const de_DescribeSecurityGroupVpcAssociationsResult = ( context: __SerdeContext ): DescribeSecurityGroupVpcAssociationsResult => { const contents: any = {}; - if (output.securityGroupVpcAssociationSet === "") { + if (String(output.securityGroupVpcAssociationSet).trim() === "") { contents[_SGVA] = []; } else if (output[_sGVAS] != null && output[_sGVAS][_i] != null) { contents[_SGVA] = de_SecurityGroupVpcAssociationList(__getArrayIfSingleItem(output[_sGVAS][_i]), context); @@ -69157,7 +69157,7 @@ const de_DescribeServiceLinkVirtualInterfacesResult = ( context: __SerdeContext ): DescribeServiceLinkVirtualInterfacesResult => { const contents: any = {}; - if (output.serviceLinkVirtualInterfaceSet === "") { + if (String(output.serviceLinkVirtualInterfaceSet).trim() === "") { contents[_SLVI] = []; } else if (output[_sLVIS] != null && output[_sLVIS][_i] != null) { contents[_SLVI] = de_ServiceLinkVirtualInterfaceSet(__getArrayIfSingleItem(output[_sLVIS][_i]), context); @@ -69173,7 +69173,7 @@ const de_DescribeServiceLinkVirtualInterfacesResult = ( */ const de_DescribeSnapshotAttributeResult = (output: any, context: __SerdeContext): DescribeSnapshotAttributeResult => { const contents: any = {}; - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -69181,7 +69181,7 @@ const de_DescribeSnapshotAttributeResult = (output: any, context: __SerdeContext if (output[_sIn] != null) { contents[_SIn] = __expectString(output[_sIn]); } - if (output.createVolumePermission === "") { + if (String(output.createVolumePermission).trim() === "") { contents[_CVPr] = []; } else if (output[_cVP] != null && output[_cVP][_i] != null) { contents[_CVPr] = de_CreateVolumePermissionList(__getArrayIfSingleItem(output[_cVP][_i]), context); @@ -69197,7 +69197,7 @@ const de_DescribeSnapshotsResult = (output: any, context: __SerdeContext): Descr if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.snapshotSet === "") { + if (String(output.snapshotSet).trim() === "") { contents[_Sn] = []; } else if (output[_sS] != null && output[_sS][_i] != null) { contents[_Sn] = de_SnapshotList(__getArrayIfSingleItem(output[_sS][_i]), context); @@ -69213,7 +69213,7 @@ const de_DescribeSnapshotTierStatusResult = ( context: __SerdeContext ): DescribeSnapshotTierStatusResult => { const contents: any = {}; - if (output.snapshotTierStatusSet === "") { + if (String(output.snapshotTierStatusSet).trim() === "") { contents[_STS] = []; } else if (output[_sTSS] != null && output[_sTSS][_i] != null) { contents[_STS] = de_snapshotTierStatusSet(__getArrayIfSingleItem(output[_sTSS][_i]), context); @@ -69246,7 +69246,7 @@ const de_DescribeSpotFleetInstancesResponse = ( context: __SerdeContext ): DescribeSpotFleetInstancesResponse => { const contents: any = {}; - if (output.activeInstanceSet === "") { + if (String(output.activeInstanceSet).trim() === "") { contents[_AIct] = []; } else if (output[_aIS] != null && output[_aIS][_i] != null) { contents[_AIct] = de_ActiveInstanceSet(__getArrayIfSingleItem(output[_aIS][_i]), context); @@ -69268,7 +69268,7 @@ const de_DescribeSpotFleetRequestHistoryResponse = ( context: __SerdeContext ): DescribeSpotFleetRequestHistoryResponse => { const contents: any = {}; - if (output.historyRecordSet === "") { + if (String(output.historyRecordSet).trim() === "") { contents[_HRi] = []; } else if (output[_hRS] != null && output[_hRS][_i] != null) { contents[_HRi] = de_HistoryRecords(__getArrayIfSingleItem(output[_hRS][_i]), context); @@ -69299,7 +69299,7 @@ const de_DescribeSpotFleetRequestsResponse = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.spotFleetRequestConfigSet === "") { + if (String(output.spotFleetRequestConfigSet).trim() === "") { contents[_SFRCp] = []; } else if (output[_sFRCS] != null && output[_sFRCS][_i] != null) { contents[_SFRCp] = de_SpotFleetRequestConfigSet(__getArrayIfSingleItem(output[_sFRCS][_i]), context); @@ -69315,7 +69315,7 @@ const de_DescribeSpotInstanceRequestsResult = ( context: __SerdeContext ): DescribeSpotInstanceRequestsResult => { const contents: any = {}; - if (output.spotInstanceRequestSet === "") { + if (String(output.spotInstanceRequestSet).trim() === "") { contents[_SIR] = []; } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { contents[_SIR] = de_SpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); @@ -69334,7 +69334,7 @@ const de_DescribeSpotPriceHistoryResult = (output: any, context: __SerdeContext) if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.spotPriceHistorySet === "") { + if (String(output.spotPriceHistorySet).trim() === "") { contents[_SPH] = []; } else if (output[_sPHS] != null && output[_sPHS][_i] != null) { contents[_SPH] = de_SpotPriceHistoryList(__getArrayIfSingleItem(output[_sPHS][_i]), context); @@ -69353,7 +69353,7 @@ const de_DescribeStaleSecurityGroupsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.staleSecurityGroupSet === "") { + if (String(output.staleSecurityGroupSet).trim() === "") { contents[_SSGS] = []; } else if (output[_sSGS] != null && output[_sSGS][_i] != null) { contents[_SSGS] = de_StaleSecurityGroupSet(__getArrayIfSingleItem(output[_sSGS][_i]), context); @@ -69366,7 +69366,7 @@ const de_DescribeStaleSecurityGroupsResult = ( */ const de_DescribeStoreImageTasksResult = (output: any, context: __SerdeContext): DescribeStoreImageTasksResult => { const contents: any = {}; - if (output.storeImageTaskResultSet === "") { + if (String(output.storeImageTaskResultSet).trim() === "") { contents[_SITR] = []; } else if (output[_sITRS] != null && output[_sITRS][_i] != null) { contents[_SITR] = de_StoreImageTaskResultSet(__getArrayIfSingleItem(output[_sITRS][_i]), context); @@ -69385,7 +69385,7 @@ const de_DescribeSubnetsResult = (output: any, context: __SerdeContext): Describ if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.subnetSet === "") { + if (String(output.subnetSet).trim() === "") { contents[_Subn] = []; } else if (output[_sSub] != null && output[_sSub][_i] != null) { contents[_Subn] = de_SubnetList(__getArrayIfSingleItem(output[_sSub][_i]), context); @@ -69401,7 +69401,7 @@ const de_DescribeTagsResult = (output: any, context: __SerdeContext): DescribeTa if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagDescriptionList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -69417,7 +69417,7 @@ const de_DescribeTrafficMirrorFilterRulesResult = ( context: __SerdeContext ): DescribeTrafficMirrorFilterRulesResult => { const contents: any = {}; - if (output.trafficMirrorFilterRuleSet === "") { + if (String(output.trafficMirrorFilterRuleSet).trim() === "") { contents[_TMFRr] = []; } else if (output[_tMFRS] != null && output[_tMFRS][_i] != null) { contents[_TMFRr] = de_TrafficMirrorFilterRuleSet(__getArrayIfSingleItem(output[_tMFRS][_i]), context); @@ -69436,7 +69436,7 @@ const de_DescribeTrafficMirrorFiltersResult = ( context: __SerdeContext ): DescribeTrafficMirrorFiltersResult => { const contents: any = {}; - if (output.trafficMirrorFilterSet === "") { + if (String(output.trafficMirrorFilterSet).trim() === "") { contents[_TMFr] = []; } else if (output[_tMFS] != null && output[_tMFS][_i] != null) { contents[_TMFr] = de_TrafficMirrorFilterSet(__getArrayIfSingleItem(output[_tMFS][_i]), context); @@ -69455,7 +69455,7 @@ const de_DescribeTrafficMirrorSessionsResult = ( context: __SerdeContext ): DescribeTrafficMirrorSessionsResult => { const contents: any = {}; - if (output.trafficMirrorSessionSet === "") { + if (String(output.trafficMirrorSessionSet).trim() === "") { contents[_TMSr] = []; } else if (output[_tMSS] != null && output[_tMSS][_i] != null) { contents[_TMSr] = de_TrafficMirrorSessionSet(__getArrayIfSingleItem(output[_tMSS][_i]), context); @@ -69474,7 +69474,7 @@ const de_DescribeTrafficMirrorTargetsResult = ( context: __SerdeContext ): DescribeTrafficMirrorTargetsResult => { const contents: any = {}; - if (output.trafficMirrorTargetSet === "") { + if (String(output.trafficMirrorTargetSet).trim() === "") { contents[_TMTr] = []; } else if (output[_tMTS] != null && output[_tMTS][_i] != null) { contents[_TMTr] = de_TrafficMirrorTargetSet(__getArrayIfSingleItem(output[_tMTS][_i]), context); @@ -69493,7 +69493,7 @@ const de_DescribeTransitGatewayAttachmentsResult = ( context: __SerdeContext ): DescribeTransitGatewayAttachmentsResult => { const contents: any = {}; - if (output.transitGatewayAttachments === "") { + if (String(output.transitGatewayAttachments).trim() === "") { contents[_TGAr] = []; } else if (output[_tGA] != null && output[_tGA][_i] != null) { contents[_TGAr] = de_TransitGatewayAttachmentList(__getArrayIfSingleItem(output[_tGA][_i]), context); @@ -69512,7 +69512,7 @@ const de_DescribeTransitGatewayConnectPeersResult = ( context: __SerdeContext ): DescribeTransitGatewayConnectPeersResult => { const contents: any = {}; - if (output.transitGatewayConnectPeerSet === "") { + if (String(output.transitGatewayConnectPeerSet).trim() === "") { contents[_TGCPr] = []; } else if (output[_tGCPS] != null && output[_tGCPS][_i] != null) { contents[_TGCPr] = de_TransitGatewayConnectPeerList(__getArrayIfSingleItem(output[_tGCPS][_i]), context); @@ -69531,7 +69531,7 @@ const de_DescribeTransitGatewayConnectsResult = ( context: __SerdeContext ): DescribeTransitGatewayConnectsResult => { const contents: any = {}; - if (output.transitGatewayConnectSet === "") { + if (String(output.transitGatewayConnectSet).trim() === "") { contents[_TGCra] = []; } else if (output[_tGCS] != null && output[_tGCS][_i] != null) { contents[_TGCra] = de_TransitGatewayConnectList(__getArrayIfSingleItem(output[_tGCS][_i]), context); @@ -69550,7 +69550,7 @@ const de_DescribeTransitGatewayMulticastDomainsResult = ( context: __SerdeContext ): DescribeTransitGatewayMulticastDomainsResult => { const contents: any = {}; - if (output.transitGatewayMulticastDomains === "") { + if (String(output.transitGatewayMulticastDomains).trim() === "") { contents[_TGMDr] = []; } else if (output[_tGMDr] != null && output[_tGMDr][_i] != null) { contents[_TGMDr] = de_TransitGatewayMulticastDomainList(__getArrayIfSingleItem(output[_tGMDr][_i]), context); @@ -69569,7 +69569,7 @@ const de_DescribeTransitGatewayPeeringAttachmentsResult = ( context: __SerdeContext ): DescribeTransitGatewayPeeringAttachmentsResult => { const contents: any = {}; - if (output.transitGatewayPeeringAttachments === "") { + if (String(output.transitGatewayPeeringAttachments).trim() === "") { contents[_TGPAr] = []; } else if (output[_tGPAr] != null && output[_tGPAr][_i] != null) { contents[_TGPAr] = de_TransitGatewayPeeringAttachmentList(__getArrayIfSingleItem(output[_tGPAr][_i]), context); @@ -69588,7 +69588,7 @@ const de_DescribeTransitGatewayPolicyTablesResult = ( context: __SerdeContext ): DescribeTransitGatewayPolicyTablesResult => { const contents: any = {}; - if (output.transitGatewayPolicyTables === "") { + if (String(output.transitGatewayPolicyTables).trim() === "") { contents[_TGPTr] = []; } else if (output[_tGPTr] != null && output[_tGPTr][_i] != null) { contents[_TGPTr] = de_TransitGatewayPolicyTableList(__getArrayIfSingleItem(output[_tGPTr][_i]), context); @@ -69607,7 +69607,7 @@ const de_DescribeTransitGatewayRouteTableAnnouncementsResult = ( context: __SerdeContext ): DescribeTransitGatewayRouteTableAnnouncementsResult => { const contents: any = {}; - if (output.transitGatewayRouteTableAnnouncements === "") { + if (String(output.transitGatewayRouteTableAnnouncements).trim() === "") { contents[_TGRTAr] = []; } else if (output[_tGRTAr] != null && output[_tGRTAr][_i] != null) { contents[_TGRTAr] = de_TransitGatewayRouteTableAnnouncementList( @@ -69629,7 +69629,7 @@ const de_DescribeTransitGatewayRouteTablesResult = ( context: __SerdeContext ): DescribeTransitGatewayRouteTablesResult => { const contents: any = {}; - if (output.transitGatewayRouteTables === "") { + if (String(output.transitGatewayRouteTables).trim() === "") { contents[_TGRTr] = []; } else if (output[_tGRTr] != null && output[_tGRTr][_i] != null) { contents[_TGRTr] = de_TransitGatewayRouteTableList(__getArrayIfSingleItem(output[_tGRTr][_i]), context); @@ -69645,7 +69645,7 @@ const de_DescribeTransitGatewayRouteTablesResult = ( */ const de_DescribeTransitGatewaysResult = (output: any, context: __SerdeContext): DescribeTransitGatewaysResult => { const contents: any = {}; - if (output.transitGatewaySet === "") { + if (String(output.transitGatewaySet).trim() === "") { contents[_TGra] = []; } else if (output[_tGS] != null && output[_tGS][_i] != null) { contents[_TGra] = de_TransitGatewayList(__getArrayIfSingleItem(output[_tGS][_i]), context); @@ -69664,7 +69664,7 @@ const de_DescribeTransitGatewayVpcAttachmentsResult = ( context: __SerdeContext ): DescribeTransitGatewayVpcAttachmentsResult => { const contents: any = {}; - if (output.transitGatewayVpcAttachments === "") { + if (String(output.transitGatewayVpcAttachments).trim() === "") { contents[_TGVAr] = []; } else if (output[_tGVAr] != null && output[_tGVAr][_i] != null) { contents[_TGVAr] = de_TransitGatewayVpcAttachmentList(__getArrayIfSingleItem(output[_tGVAr][_i]), context); @@ -69683,7 +69683,7 @@ const de_DescribeTrunkInterfaceAssociationsResult = ( context: __SerdeContext ): DescribeTrunkInterfaceAssociationsResult => { const contents: any = {}; - if (output.interfaceAssociationSet === "") { + if (String(output.interfaceAssociationSet).trim() === "") { contents[_IAnt] = []; } else if (output[_iAS] != null && output[_iAS][_i] != null) { contents[_IAnt] = de_TrunkInterfaceAssociationList(__getArrayIfSingleItem(output[_iAS][_i]), context); @@ -69702,7 +69702,7 @@ const de_DescribeVerifiedAccessEndpointsResult = ( context: __SerdeContext ): DescribeVerifiedAccessEndpointsResult => { const contents: any = {}; - if (output.verifiedAccessEndpointSet === "") { + if (String(output.verifiedAccessEndpointSet).trim() === "") { contents[_VAEe] = []; } else if (output[_vAES] != null && output[_vAES][_i] != null) { contents[_VAEe] = de_VerifiedAccessEndpointList(__getArrayIfSingleItem(output[_vAES][_i]), context); @@ -69721,7 +69721,7 @@ const de_DescribeVerifiedAccessGroupsResult = ( context: __SerdeContext ): DescribeVerifiedAccessGroupsResult => { const contents: any = {}; - if (output.verifiedAccessGroupSet === "") { + if (String(output.verifiedAccessGroupSet).trim() === "") { contents[_VAGe] = []; } else if (output[_vAGS] != null && output[_vAGS][_i] != null) { contents[_VAGe] = de_VerifiedAccessGroupList(__getArrayIfSingleItem(output[_vAGS][_i]), context); @@ -69740,7 +69740,7 @@ const de_DescribeVerifiedAccessInstanceLoggingConfigurationsResult = ( context: __SerdeContext ): DescribeVerifiedAccessInstanceLoggingConfigurationsResult => { const contents: any = {}; - if (output.loggingConfigurationSet === "") { + if (String(output.loggingConfigurationSet).trim() === "") { contents[_LC] = []; } else if (output[_lCS] != null && output[_lCS][_i] != null) { contents[_LC] = de_VerifiedAccessInstanceLoggingConfigurationList( @@ -69762,7 +69762,7 @@ const de_DescribeVerifiedAccessInstancesResult = ( context: __SerdeContext ): DescribeVerifiedAccessInstancesResult => { const contents: any = {}; - if (output.verifiedAccessInstanceSet === "") { + if (String(output.verifiedAccessInstanceSet).trim() === "") { contents[_VAIe] = []; } else if (output[_vAIS] != null && output[_vAIS][_i] != null) { contents[_VAIe] = de_VerifiedAccessInstanceList(__getArrayIfSingleItem(output[_vAIS][_i]), context); @@ -69781,7 +69781,7 @@ const de_DescribeVerifiedAccessTrustProvidersResult = ( context: __SerdeContext ): DescribeVerifiedAccessTrustProvidersResult => { const contents: any = {}; - if (output.verifiedAccessTrustProviderSet === "") { + if (String(output.verifiedAccessTrustProviderSet).trim() === "") { contents[_VATPe] = []; } else if (output[_vATPS] != null && output[_vATPS][_i] != null) { contents[_VATPe] = de_VerifiedAccessTrustProviderList(__getArrayIfSingleItem(output[_vATPS][_i]), context); @@ -69800,7 +69800,7 @@ const de_DescribeVolumeAttributeResult = (output: any, context: __SerdeContext): if (output[_aEIO] != null) { contents[_AEIO] = de_AttributeBooleanValue(output[_aEIO], context); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -69822,7 +69822,7 @@ const de_DescribeVolumesModificationsResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.volumeModificationSet === "") { + if (String(output.volumeModificationSet).trim() === "") { contents[_VMo] = []; } else if (output[_vMS] != null && output[_vMS][_i] != null) { contents[_VMo] = de_VolumeModificationList(__getArrayIfSingleItem(output[_vMS][_i]), context); @@ -69838,7 +69838,7 @@ const de_DescribeVolumesResult = (output: any, context: __SerdeContext): Describ if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.volumeSet === "") { + if (String(output.volumeSet).trim() === "") { contents[_Vol] = []; } else if (output[_vS] != null && output[_vS][_i] != null) { contents[_Vol] = de_VolumeList(__getArrayIfSingleItem(output[_vS][_i]), context); @@ -69854,7 +69854,7 @@ const de_DescribeVolumeStatusResult = (output: any, context: __SerdeContext): De if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.volumeStatusSet === "") { + if (String(output.volumeStatusSet).trim() === "") { contents[_VSo] = []; } else if (output[_vSS] != null && output[_vSS][_i] != null) { contents[_VSo] = de_VolumeStatusList(__getArrayIfSingleItem(output[_vSS][_i]), context); @@ -69890,7 +69890,7 @@ const de_DescribeVpcBlockPublicAccessExclusionsResult = ( context: __SerdeContext ): DescribeVpcBlockPublicAccessExclusionsResult => { const contents: any = {}; - if (output.vpcBlockPublicAccessExclusionSet === "") { + if (String(output.vpcBlockPublicAccessExclusionSet).trim() === "") { contents[_VBPAEp] = []; } else if (output[_vBPAES] != null && output[_vBPAES][_i] != null) { contents[_VBPAEp] = de_VpcBlockPublicAccessExclusionList(__getArrayIfSingleItem(output[_vBPAES][_i]), context); @@ -69926,7 +69926,7 @@ const de_DescribeVpcClassicLinkDnsSupportResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.vpcs === "") { + if (String(output.vpcs).trim() === "") { contents[_Vpc] = []; } else if (output[_vpc] != null && output[_vpc][_i] != null) { contents[_Vpc] = de_ClassicLinkDnsSupportList(__getArrayIfSingleItem(output[_vpc][_i]), context); @@ -69939,7 +69939,7 @@ const de_DescribeVpcClassicLinkDnsSupportResult = ( */ const de_DescribeVpcClassicLinkResult = (output: any, context: __SerdeContext): DescribeVpcClassicLinkResult => { const contents: any = {}; - if (output.vpcSet === "") { + if (String(output.vpcSet).trim() === "") { contents[_Vpc] = []; } else if (output[_vSp] != null && output[_vSp][_i] != null) { contents[_Vpc] = de_VpcClassicLinkList(__getArrayIfSingleItem(output[_vSp][_i]), context); @@ -69955,7 +69955,7 @@ const de_DescribeVpcEndpointAssociationsResult = ( context: __SerdeContext ): DescribeVpcEndpointAssociationsResult => { const contents: any = {}; - if (output.vpcEndpointAssociationSet === "") { + if (String(output.vpcEndpointAssociationSet).trim() === "") { contents[_VEA] = []; } else if (output[_vEAS] != null && output[_vEAS][_i] != null) { contents[_VEA] = de_VpcEndpointAssociationSet(__getArrayIfSingleItem(output[_vEAS][_i]), context); @@ -69974,7 +69974,7 @@ const de_DescribeVpcEndpointConnectionNotificationsResult = ( context: __SerdeContext ): DescribeVpcEndpointConnectionNotificationsResult => { const contents: any = {}; - if (output.connectionNotificationSet === "") { + if (String(output.connectionNotificationSet).trim() === "") { contents[_CNSo] = []; } else if (output[_cNSo] != null && output[_cNSo][_i] != null) { contents[_CNSo] = de_ConnectionNotificationSet(__getArrayIfSingleItem(output[_cNSo][_i]), context); @@ -69993,7 +69993,7 @@ const de_DescribeVpcEndpointConnectionsResult = ( context: __SerdeContext ): DescribeVpcEndpointConnectionsResult => { const contents: any = {}; - if (output.vpcEndpointConnectionSet === "") { + if (String(output.vpcEndpointConnectionSet).trim() === "") { contents[_VEC] = []; } else if (output[_vECS] != null && output[_vECS][_i] != null) { contents[_VEC] = de_VpcEndpointConnectionSet(__getArrayIfSingleItem(output[_vECS][_i]), context); @@ -70012,7 +70012,7 @@ const de_DescribeVpcEndpointServiceConfigurationsResult = ( context: __SerdeContext ): DescribeVpcEndpointServiceConfigurationsResult => { const contents: any = {}; - if (output.serviceConfigurationSet === "") { + if (String(output.serviceConfigurationSet).trim() === "") { contents[_SCer] = []; } else if (output[_sCS] != null && output[_sCS][_i] != null) { contents[_SCer] = de_ServiceConfigurationSet(__getArrayIfSingleItem(output[_sCS][_i]), context); @@ -70031,7 +70031,7 @@ const de_DescribeVpcEndpointServicePermissionsResult = ( context: __SerdeContext ): DescribeVpcEndpointServicePermissionsResult => { const contents: any = {}; - if (output.allowedPrincipals === "") { + if (String(output.allowedPrincipals).trim() === "") { contents[_APl] = []; } else if (output[_aP] != null && output[_aP][_i] != null) { contents[_APl] = de_AllowedPrincipalSet(__getArrayIfSingleItem(output[_aP][_i]), context); @@ -70050,12 +70050,12 @@ const de_DescribeVpcEndpointServicesResult = ( context: __SerdeContext ): DescribeVpcEndpointServicesResult => { const contents: any = {}; - if (output.serviceNameSet === "") { + if (String(output.serviceNameSet).trim() === "") { contents[_SNer] = []; } else if (output[_sNS] != null && output[_sNS][_i] != null) { contents[_SNer] = de_ValueStringList(__getArrayIfSingleItem(output[_sNS][_i]), context); } - if (output.serviceDetailSet === "") { + if (String(output.serviceDetailSet).trim() === "") { contents[_SDe] = []; } else if (output[_sDSe] != null && output[_sDSe][_i] != null) { contents[_SDe] = de_ServiceDetailSet(__getArrayIfSingleItem(output[_sDSe][_i]), context); @@ -70071,7 +70071,7 @@ const de_DescribeVpcEndpointServicesResult = ( */ const de_DescribeVpcEndpointsResult = (output: any, context: __SerdeContext): DescribeVpcEndpointsResult => { const contents: any = {}; - if (output.vpcEndpointSet === "") { + if (String(output.vpcEndpointSet).trim() === "") { contents[_VEp] = []; } else if (output[_vESp] != null && output[_vESp][_i] != null) { contents[_VEp] = de_VpcEndpointSet(__getArrayIfSingleItem(output[_vESp][_i]), context); @@ -70090,7 +70090,7 @@ const de_DescribeVpcPeeringConnectionsResult = ( context: __SerdeContext ): DescribeVpcPeeringConnectionsResult => { const contents: any = {}; - if (output.vpcPeeringConnectionSet === "") { + if (String(output.vpcPeeringConnectionSet).trim() === "") { contents[_VPCp] = []; } else if (output[_vPCS] != null && output[_vPCS][_i] != null) { contents[_VPCp] = de_VpcPeeringConnectionList(__getArrayIfSingleItem(output[_vPCS][_i]), context); @@ -70109,7 +70109,7 @@ const de_DescribeVpcsResult = (output: any, context: __SerdeContext): DescribeVp if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.vpcSet === "") { + if (String(output.vpcSet).trim() === "") { contents[_Vpc] = []; } else if (output[_vSp] != null && output[_vSp][_i] != null) { contents[_Vpc] = de_VpcList(__getArrayIfSingleItem(output[_vSp][_i]), context); @@ -70122,7 +70122,7 @@ const de_DescribeVpcsResult = (output: any, context: __SerdeContext): DescribeVp */ const de_DescribeVpnConnectionsResult = (output: any, context: __SerdeContext): DescribeVpnConnectionsResult => { const contents: any = {}; - if (output.vpnConnectionSet === "") { + if (String(output.vpnConnectionSet).trim() === "") { contents[_VCp] = []; } else if (output[_vCS] != null && output[_vCS][_i] != null) { contents[_VCp] = de_VpnConnectionList(__getArrayIfSingleItem(output[_vCS][_i]), context); @@ -70135,7 +70135,7 @@ const de_DescribeVpnConnectionsResult = (output: any, context: __SerdeContext): */ const de_DescribeVpnGatewaysResult = (output: any, context: __SerdeContext): DescribeVpnGatewaysResult => { const contents: any = {}; - if (output.vpnGatewaySet === "") { + if (String(output.vpnGatewaySet).trim() === "") { contents[_VGp] = []; } else if (output[_vGS] != null && output[_vGS][_i] != null) { contents[_VGp] = de_VpnGatewayList(__getArrayIfSingleItem(output[_vGS][_i]), context); @@ -70221,7 +70221,7 @@ const de_DhcpConfiguration = (output: any, context: __SerdeContext): DhcpConfigu if (output[_k] != null) { contents[_Ke] = __expectString(output[_k]); } - if (output.valueSet === "") { + if (String(output.valueSet).trim() === "") { contents[_Val] = []; } else if (output[_vSa] != null && output[_vSa][_i] != null) { contents[_Val] = de_DhcpConfigurationValueList(__getArrayIfSingleItem(output[_vSa][_i]), context); @@ -70259,7 +70259,7 @@ const de_DhcpOptions = (output: any, context: __SerdeContext): DhcpOptions => { if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -70267,7 +70267,7 @@ const de_DhcpOptions = (output: any, context: __SerdeContext): DhcpOptions => { if (output[_dOI] != null) { contents[_DOI] = __expectString(output[_dOI]); } - if (output.dhcpConfigurationSet === "") { + if (String(output.dhcpConfigurationSet).trim() === "") { contents[_DCh] = []; } else if (output[_dCS] != null && output[_dCS][_i] != null) { contents[_DCh] = de_DhcpConfigurationList(__getArrayIfSingleItem(output[_dCS][_i]), context); @@ -70396,7 +70396,7 @@ const de_DisableFastSnapshotRestoreErrorItem = ( if (output[_sIn] != null) { contents[_SIn] = __expectString(output[_sIn]); } - if (output.fastSnapshotRestoreStateErrorSet === "") { + if (String(output.fastSnapshotRestoreStateErrorSet).trim() === "") { contents[_FSRSE] = []; } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) { contents[_FSRSE] = de_DisableFastSnapshotRestoreStateErrorSet(__getArrayIfSingleItem(output[_fSRSES][_i]), context); @@ -70426,12 +70426,12 @@ const de_DisableFastSnapshotRestoresResult = ( context: __SerdeContext ): DisableFastSnapshotRestoresResult => { const contents: any = {}; - if (output.successful === "") { + if (String(output.successful).trim() === "") { contents[_Suc] = []; } else if (output[_suc] != null && output[_suc][_i] != null) { contents[_Suc] = de_DisableFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_suc][_i]), context); } - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_DisableFastSnapshotRestoreErrorSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -70799,7 +70799,7 @@ const de_DisassociateNatGatewayAddressResult = ( if (output[_nGI] != null) { contents[_NGI] = __expectString(output[_nGI]); } - if (output.natGatewayAddressSet === "") { + if (String(output.natGatewayAddressSet).trim() === "") { contents[_NGA] = []; } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); @@ -71216,7 +71216,7 @@ const de_EbsStatusDetailsList = (output: any, context: __SerdeContext): EbsStatu */ const de_EbsStatusSummary = (output: any, context: __SerdeContext): EbsStatusSummary => { const contents: any = {}; - if (output.details === "") { + if (String(output.details).trim() === "") { contents[_Det] = []; } else if (output[_det] != null && output[_det][_i] != null) { contents[_Det] = de_EbsStatusDetailsList(__getArrayIfSingleItem(output[_det][_i]), context); @@ -71253,7 +71253,7 @@ const de_Ec2InstanceConnectEndpoint = (output: any, context: __SerdeContext): Ec if (output[_fDN] != null) { contents[_FDN] = __expectString(output[_fDN]); } - if (output.networkInterfaceIdSet === "") { + if (String(output.networkInterfaceIdSet).trim() === "") { contents[_NIIe] = []; } else if (output[_nIIS] != null && output[_nIIS][_i] != null) { contents[_NIIe] = de_NetworkInterfaceIdSet(__getArrayIfSingleItem(output[_nIIS][_i]), context); @@ -71273,12 +71273,12 @@ const de_Ec2InstanceConnectEndpoint = (output: any, context: __SerdeContext): Ec if (output[_pCI] != null) { contents[_PCI] = __parseBoolean(output[_pCI]); } - if (output.securityGroupIdSet === "") { + if (String(output.securityGroupIdSet).trim() === "") { contents[_SGI] = []; } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { contents[_SGI] = de_SecurityGroupIdSet(__getArrayIfSingleItem(output[_sGIS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -71308,7 +71308,7 @@ const de_EfaInfo = (output: any, context: __SerdeContext): EfaInfo => { */ const de_EgressOnlyInternetGateway = (output: any, context: __SerdeContext): EgressOnlyInternetGateway => { const contents: any = {}; - if (output.attachmentSet === "") { + if (String(output.attachmentSet).trim() === "") { contents[_Atta] = []; } else if (output[_aSt] != null && output[_aSt][_i] != null) { contents[_Atta] = de_InternetGatewayAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); @@ -71316,7 +71316,7 @@ const de_EgressOnlyInternetGateway = (output: any, context: __SerdeContext): Egr if (output[_eOIGI] != null) { contents[_EOIGI] = __expectString(output[_eOIGI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -71400,7 +71400,7 @@ const de_ElasticGpus = (output: any, context: __SerdeContext): ElasticGpus => { if (output[_iI] != null) { contents[_IIn] = __expectString(output[_iI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -71580,7 +71580,7 @@ const de_EnableFastSnapshotRestoreErrorItem = ( if (output[_sIn] != null) { contents[_SIn] = __expectString(output[_sIn]); } - if (output.fastSnapshotRestoreStateErrorSet === "") { + if (String(output.fastSnapshotRestoreStateErrorSet).trim() === "") { contents[_FSRSE] = []; } else if (output[_fSRSES] != null && output[_fSRSES][_i] != null) { contents[_FSRSE] = de_EnableFastSnapshotRestoreStateErrorSet(__getArrayIfSingleItem(output[_fSRSES][_i]), context); @@ -71610,12 +71610,12 @@ const de_EnableFastSnapshotRestoresResult = ( context: __SerdeContext ): EnableFastSnapshotRestoresResult => { const contents: any = {}; - if (output.successful === "") { + if (String(output.successful).trim() === "") { contents[_Suc] = []; } else if (output[_suc] != null && output[_suc][_i] != null) { contents[_Suc] = de_EnableFastSnapshotRestoreSuccessSet(__getArrayIfSingleItem(output[_suc][_i]), context); } - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_EnableFastSnapshotRestoreErrorSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -71985,7 +71985,7 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_ad] != null) { contents[_Ad] = __expectString(output[_ad]); } - if (output.addressSet === "") { + if (String(output.addressSet).trim() === "") { contents[_Addr] = []; } else if (output[_aSd] != null && output[_aSd][_i] != null) { contents[_Addr] = de_IpAddressList(__getArrayIfSingleItem(output[_aSd][_i]), context); @@ -71993,17 +71993,17 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_aTtt] != null) { contents[_ATtta] = de_AnalysisComponent(output[_aTtt], context); } - if (output.availabilityZoneSet === "") { + if (String(output.availabilityZoneSet).trim() === "") { contents[_AZv] = []; } else if (output[_aZS] != null && output[_aZS][_i] != null) { contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); } - if (output.availabilityZoneIdSet === "") { + if (String(output.availabilityZoneIdSet).trim() === "") { contents[_AZIv] = []; } else if (output[_aZIS] != null && output[_aZIS][_i] != null) { contents[_AZIv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZIS][_i]), context); } - if (output.cidrSet === "") { + if (String(output.cidrSet).trim() === "") { contents[_Ci] = []; } else if (output[_cS] != null && output[_cS][_i] != null) { contents[_Ci] = de_ValueStringList(__getArrayIfSingleItem(output[_cS][_i]), context); @@ -72047,7 +72047,7 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_lBTG] != null) { contents[_LBTG] = de_AnalysisComponent(output[_lBTG], context); } - if (output.loadBalancerTargetGroupSet === "") { + if (String(output.loadBalancerTargetGroupSet).trim() === "") { contents[_LBTGo] = []; } else if (output[_lBTGS] != null && output[_lBTGS][_i] != null) { contents[_LBTGo] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_lBTGS][_i]), context); @@ -72076,7 +72076,7 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_po] != null) { contents[_Po] = __strictParseInt32(output[_po]) as number; } - if (output.portRangeSet === "") { + if (String(output.portRangeSet).trim() === "") { contents[_PRo] = []; } else if (output[_pRS] != null && output[_pRS][_i] != null) { contents[_PRo] = de_PortRangeList(__getArrayIfSingleItem(output[_pRS][_i]), context); @@ -72084,7 +72084,7 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_pL] != null) { contents[_PLr] = de_AnalysisComponent(output[_pL], context); } - if (output.protocolSet === "") { + if (String(output.protocolSet).trim() === "") { contents[_Pro] = []; } else if (output[_pSro] != null && output[_pSro][_i] != null) { contents[_Pro] = de_StringList(__getArrayIfSingleItem(output[_pSro][_i]), context); @@ -72101,7 +72101,7 @@ const de_Explanation = (output: any, context: __SerdeContext): Explanation => { if (output[_sGR] != null) { contents[_SGRe] = de_AnalysisSecurityGroupRule(output[_sGR], context); } - if (output.securityGroupSet === "") { + if (String(output.securityGroupSet).trim() === "") { contents[_SG] = []; } else if (output[_sGS] != null && output[_sGS][_i] != null) { contents[_SG] = de_AnalysisComponentList(__getArrayIfSingleItem(output[_sGS][_i]), context); @@ -72231,7 +72231,7 @@ const de_ExportImageResult = (output: any, context: __SerdeContext): ExportImage if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -72265,7 +72265,7 @@ const de_ExportImageTask = (output: any, context: __SerdeContext): ExportImageTa if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -72307,7 +72307,7 @@ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => { if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -72391,7 +72391,7 @@ const de_ExportVerifiedAccessInstanceClientConfigurationResult = ( if (output[_re] != null) { contents[_Regi] = __expectString(output[_re]); } - if (output.deviceTrustProviderSet === "") { + if (String(output.deviceTrustProviderSet).trim() === "") { contents[_DTP] = []; } else if (output[_dTPS] != null && output[_dTPS][_i] != null) { contents[_DTP] = de_DeviceTrustProviderTypeList(__getArrayIfSingleItem(output[_dTPS][_i]), context); @@ -72399,7 +72399,7 @@ const de_ExportVerifiedAccessInstanceClientConfigurationResult = ( if (output[_uTP] != null) { contents[_UTP] = de_VerifiedAccessInstanceUserTrustProviderClientConfiguration(output[_uTP], context); } - if (output.openVpnConfigurationSet === "") { + if (String(output.openVpnConfigurationSet).trim() === "") { contents[_OVC] = []; } else if (output[_oVCS] != null && output[_oVCS][_i] != null) { contents[_OVC] = de_VerifiedAccessInstanceOpenVpnClientConfigurationList( @@ -72536,22 +72536,22 @@ const de_FirewallStatefulRule = (output: any, context: __SerdeContext): Firewall if (output[_rGA] != null) { contents[_RGA] = __expectString(output[_rGA]); } - if (output.sourceSet === "") { + if (String(output.sourceSet).trim() === "") { contents[_So] = []; } else if (output[_sSo] != null && output[_sSo][_i] != null) { contents[_So] = de_ValueStringList(__getArrayIfSingleItem(output[_sSo][_i]), context); } - if (output.destinationSet === "") { + if (String(output.destinationSet).trim() === "") { contents[_Des] = []; } else if (output[_dSe] != null && output[_dSe][_i] != null) { contents[_Des] = de_ValueStringList(__getArrayIfSingleItem(output[_dSe][_i]), context); } - if (output.sourcePortSet === "") { + if (String(output.sourcePortSet).trim() === "") { contents[_SPo] = []; } else if (output[_sPS] != null && output[_sPS][_i] != null) { contents[_SPo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPS][_i]), context); } - if (output.destinationPortSet === "") { + if (String(output.destinationPortSet).trim() === "") { contents[_DPes] = []; } else if (output[_dPS] != null && output[_dPS][_i] != null) { contents[_DPes] = de_PortRangeList(__getArrayIfSingleItem(output[_dPS][_i]), context); @@ -72576,27 +72576,27 @@ const de_FirewallStatelessRule = (output: any, context: __SerdeContext): Firewal if (output[_rGA] != null) { contents[_RGA] = __expectString(output[_rGA]); } - if (output.sourceSet === "") { + if (String(output.sourceSet).trim() === "") { contents[_So] = []; } else if (output[_sSo] != null && output[_sSo][_i] != null) { contents[_So] = de_ValueStringList(__getArrayIfSingleItem(output[_sSo][_i]), context); } - if (output.destinationSet === "") { + if (String(output.destinationSet).trim() === "") { contents[_Des] = []; } else if (output[_dSe] != null && output[_dSe][_i] != null) { contents[_Des] = de_ValueStringList(__getArrayIfSingleItem(output[_dSe][_i]), context); } - if (output.sourcePortSet === "") { + if (String(output.sourcePortSet).trim() === "") { contents[_SPo] = []; } else if (output[_sPS] != null && output[_sPS][_i] != null) { contents[_SPo] = de_PortRangeList(__getArrayIfSingleItem(output[_sPS][_i]), context); } - if (output.destinationPortSet === "") { + if (String(output.destinationPortSet).trim() === "") { contents[_DPes] = []; } else if (output[_dPS] != null && output[_dPS][_i] != null) { contents[_DPes] = de_PortRangeList(__getArrayIfSingleItem(output[_dPS][_i]), context); } - if (output.protocolSet === "") { + if (String(output.protocolSet).trim() === "") { contents[_Pro] = []; } else if (output[_pSro] != null && output[_pSro][_i] != null) { contents[_Pro] = de_ProtocolIntList(__getArrayIfSingleItem(output[_pSro][_i]), context); @@ -72691,7 +72691,7 @@ const de_FleetData = (output: any, context: __SerdeContext): FleetData => { if (output[_fODC] != null) { contents[_FODC] = __strictParseFloat(output[_fODC]) as number; } - if (output.launchTemplateConfigs === "") { + if (String(output.launchTemplateConfigs).trim() === "") { contents[_LTC] = []; } else if (output[_lTC] != null && output[_lTC][_i] != null) { contents[_LTC] = de_FleetLaunchTemplateConfigList(__getArrayIfSingleItem(output[_lTC][_i]), context); @@ -72720,17 +72720,17 @@ const de_FleetData = (output: any, context: __SerdeContext): FleetData => { if (output[_oDO] != null) { contents[_ODO] = de_OnDemandOptions(output[_oDO], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.errorSet === "") { + if (String(output.errorSet).trim() === "") { contents[_Err] = []; } else if (output[_eSr] != null && output[_eSr][_i] != null) { contents[_Err] = de_DescribeFleetsErrorSet(__getArrayIfSingleItem(output[_eSr][_i]), context); } - if (output.fleetInstanceSet === "") { + if (String(output.fleetInstanceSet).trim() === "") { contents[_In] = []; } else if (output[_fIS] != null && output[_fIS][_i] != null) { contents[_In] = de_DescribeFleetsInstancesSet(__getArrayIfSingleItem(output[_fIS][_i]), context); @@ -72749,7 +72749,7 @@ const de_FleetLaunchTemplateConfig = (output: any, context: __SerdeContext): Fle if (output[_lTS] != null) { contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context); } - if (output.overrides === "") { + if (String(output.overrides).trim() === "") { contents[_Ov] = []; } else if (output[_ov] != null && output[_ov][_i] != null) { contents[_Ov] = de_FleetLaunchTemplateOverridesList(__getArrayIfSingleItem(output[_ov][_i]), context); @@ -72800,7 +72800,7 @@ const de_FleetLaunchTemplateOverrides = (output: any, context: __SerdeContext): if (output[_iIma] != null) { contents[_IIma] = __expectString(output[_iIma]); } - if (output.blockDeviceMappingSet === "") { + if (String(output.blockDeviceMappingSet).trim() === "") { contents[_BDM] = []; } else if (output[_bDMS] != null && output[_bDMS][_i] != null) { contents[_BDM] = de_BlockDeviceMappingResponseList(__getArrayIfSingleItem(output[_bDMS][_i]), context); @@ -72919,7 +72919,7 @@ const de_FlowLog = (output: any, context: __SerdeContext): FlowLog => { if (output[_lF] != null) { contents[_LF] = __expectString(output[_lF]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -73024,12 +73024,12 @@ const de_FpgaImage = (output: any, context: __SerdeContext): FpgaImage => { if (output[_oAw] != null) { contents[_OAw] = __expectString(output[_oAw]); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output.tags === "") { + if (String(output.tags).trim() === "") { contents[_Ta] = []; } else if (output[_ta] != null && output[_ta][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_ta][_i]), context); @@ -73040,7 +73040,7 @@ const de_FpgaImage = (output: any, context: __SerdeContext): FpgaImage => { if (output[_dRS] != null) { contents[_DRSa] = __parseBoolean(output[_dRS]); } - if (output.instanceTypes === "") { + if (String(output.instanceTypes).trim() === "") { contents[_ITnst] = []; } else if (output[_iTn] != null && output[_iTn][_i] != null) { contents[_ITnst] = de_InstanceTypesList(__getArrayIfSingleItem(output[_iTn][_i]), context); @@ -73062,12 +73062,12 @@ const de_FpgaImageAttribute = (output: any, context: __SerdeContext): FpgaImageA if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.loadPermissions === "") { + if (String(output.loadPermissions).trim() === "") { contents[_LPo] = []; } else if (output[_lP] != null && output[_lP][_i] != null) { contents[_LPo] = de_LoadPermissionList(__getArrayIfSingleItem(output[_lP][_i]), context); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -73105,7 +73105,7 @@ const de_FpgaImageState = (output: any, context: __SerdeContext): FpgaImageState */ const de_FpgaInfo = (output: any, context: __SerdeContext): FpgaInfo => { const contents: any = {}; - if (output.fpgas === "") { + if (String(output.fpgas).trim() === "") { contents[_Fp] = []; } else if (output[_fp] != null && output[_fp][_i] != null) { contents[_Fp] = de_FpgaDeviceInfoList(__getArrayIfSingleItem(output[_fp][_i]), context); @@ -73135,7 +73135,7 @@ const de_GetAllowedImagesSettingsResult = (output: any, context: __SerdeContext) if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.imageCriterionSet === "") { + if (String(output.imageCriterionSet).trim() === "") { contents[_ICm] = []; } else if (output[_iCS] != null && output[_iCS][_i] != null) { contents[_ICm] = de_ImageCriterionList(__getArrayIfSingleItem(output[_iCS][_i]), context); @@ -73154,7 +73154,7 @@ const de_GetAssociatedEnclaveCertificateIamRolesResult = ( context: __SerdeContext ): GetAssociatedEnclaveCertificateIamRolesResult => { const contents: any = {}; - if (output.associatedRoleSet === "") { + if (String(output.associatedRoleSet).trim() === "") { contents[_ARss] = []; } else if (output[_aRS] != null && output[_aRS][_i] != null) { contents[_ARss] = de_AssociatedRolesList(__getArrayIfSingleItem(output[_aRS][_i]), context); @@ -73170,7 +73170,7 @@ const de_GetAssociatedIpv6PoolCidrsResult = ( context: __SerdeContext ): GetAssociatedIpv6PoolCidrsResult => { const contents: any = {}; - if (output.ipv6CidrAssociationSet === "") { + if (String(output.ipv6CidrAssociationSet).trim() === "") { contents[_ICA] = []; } else if (output[_iCAS] != null && output[_iCAS][_i] != null) { contents[_ICA] = de_Ipv6CidrAssociationSet(__getArrayIfSingleItem(output[_iCAS][_i]), context); @@ -73189,7 +73189,7 @@ const de_GetAwsNetworkPerformanceDataResult = ( context: __SerdeContext ): GetAwsNetworkPerformanceDataResult => { const contents: any = {}; - if (output.dataResponseSet === "") { + if (String(output.dataResponseSet).trim() === "") { contents[_DRa] = []; } else if (output[_dRSa] != null && output[_dRSa][_i] != null) { contents[_DRa] = de_DataResponses(__getArrayIfSingleItem(output[_dRSa][_i]), context); @@ -73226,7 +73226,7 @@ const de_GetCapacityReservationUsageResult = ( if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.instanceUsageSet === "") { + if (String(output.instanceUsageSet).trim() === "") { contents[_IU] = []; } else if (output[_iUS] != null && output[_iUS][_i] != null) { contents[_IU] = de_InstanceUsageSet(__getArrayIfSingleItem(output[_iUS][_i]), context); @@ -73242,7 +73242,7 @@ const de_GetCoipPoolUsageResult = (output: any, context: __SerdeContext): GetCoi if (output[_cPI] != null) { contents[_CPIo] = __expectString(output[_cPI]); } - if (output.coipAddressUsageSet === "") { + if (String(output.coipAddressUsageSet).trim() === "") { contents[_CAU] = []; } else if (output[_cAUS] != null && output[_cAUS][_i] != null) { contents[_CAU] = de_CoipAddressUsageSet(__getArrayIfSingleItem(output[_cAUS][_i]), context); @@ -73319,7 +73319,7 @@ const de_GetDeclarativePoliciesReportSummaryResult = ( if (output[_nOFA] != null) { contents[_NOFA] = __strictParseInt32(output[_nOFA]) as number; } - if (output.attributeSummarySet === "") { + if (String(output.attributeSummarySet).trim() === "") { contents[_ASt] = []; } else if (output[_aSSt] != null && output[_aSSt][_i] != null) { contents[_ASt] = de_AttributeSummaryList(__getArrayIfSingleItem(output[_aSSt][_i]), context); @@ -73391,7 +73391,7 @@ const de_GetGroupsForCapacityReservationResult = ( if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.capacityReservationGroupSet === "") { + if (String(output.capacityReservationGroupSet).trim() === "") { contents[_CRG] = []; } else if (output[_cRGS] != null && output[_cRGS][_i] != null) { contents[_CRG] = de_CapacityReservationGroupSet(__getArrayIfSingleItem(output[_cRGS][_i]), context); @@ -73410,7 +73410,7 @@ const de_GetHostReservationPurchasePreviewResult = ( if (output[_cC] != null) { contents[_CCu] = __expectString(output[_cC]); } - if (output.purchase === "") { + if (String(output.purchase).trim() === "") { contents[_Pur] = []; } else if (output[_pur] != null && output[_pur][_i] != null) { contents[_Pur] = de_PurchaseSet(__getArrayIfSingleItem(output[_pur][_i]), context); @@ -73483,7 +73483,7 @@ const de_GetInstanceTypesFromInstanceRequirementsResult = ( context: __SerdeContext ): GetInstanceTypesFromInstanceRequirementsResult => { const contents: any = {}; - if (output.instanceTypeSet === "") { + if (String(output.instanceTypeSet).trim() === "") { contents[_ITnst] = []; } else if (output[_iTS] != null && output[_iTS][_i] != null) { contents[_ITnst] = de_InstanceTypeInfoFromInstanceRequirementsSet( @@ -73516,7 +73516,7 @@ const de_GetInstanceUefiDataResult = (output: any, context: __SerdeContext): Get */ const de_GetIpamAddressHistoryResult = (output: any, context: __SerdeContext): GetIpamAddressHistoryResult => { const contents: any = {}; - if (output.historyRecordSet === "") { + if (String(output.historyRecordSet).trim() === "") { contents[_HRi] = []; } else if (output[_hRS] != null && output[_hRS][_i] != null) { contents[_HRi] = de_IpamAddressHistoryRecordSet(__getArrayIfSingleItem(output[_hRS][_i]), context); @@ -73532,7 +73532,7 @@ const de_GetIpamAddressHistoryResult = (output: any, context: __SerdeContext): G */ const de_GetIpamDiscoveredAccountsResult = (output: any, context: __SerdeContext): GetIpamDiscoveredAccountsResult => { const contents: any = {}; - if (output.ipamDiscoveredAccountSet === "") { + if (String(output.ipamDiscoveredAccountSet).trim() === "") { contents[_IDA] = []; } else if (output[_iDAS] != null && output[_iDAS][_i] != null) { contents[_IDA] = de_IpamDiscoveredAccountSet(__getArrayIfSingleItem(output[_iDAS][_i]), context); @@ -73551,7 +73551,7 @@ const de_GetIpamDiscoveredPublicAddressesResult = ( context: __SerdeContext ): GetIpamDiscoveredPublicAddressesResult => { const contents: any = {}; - if (output.ipamDiscoveredPublicAddressSet === "") { + if (String(output.ipamDiscoveredPublicAddressSet).trim() === "") { contents[_IDPA] = []; } else if (output[_iDPAS] != null && output[_iDPAS][_i] != null) { contents[_IDPA] = de_IpamDiscoveredPublicAddressSet(__getArrayIfSingleItem(output[_iDPAS][_i]), context); @@ -73573,7 +73573,7 @@ const de_GetIpamDiscoveredResourceCidrsResult = ( context: __SerdeContext ): GetIpamDiscoveredResourceCidrsResult => { const contents: any = {}; - if (output.ipamDiscoveredResourceCidrSet === "") { + if (String(output.ipamDiscoveredResourceCidrSet).trim() === "") { contents[_IDRC] = []; } else if (output[_iDRCS] != null && output[_iDRCS][_i] != null) { contents[_IDRC] = de_IpamDiscoveredResourceCidrSet(__getArrayIfSingleItem(output[_iDRCS][_i]), context); @@ -73589,7 +73589,7 @@ const de_GetIpamDiscoveredResourceCidrsResult = ( */ const de_GetIpamPoolAllocationsResult = (output: any, context: __SerdeContext): GetIpamPoolAllocationsResult => { const contents: any = {}; - if (output.ipamPoolAllocationSet === "") { + if (String(output.ipamPoolAllocationSet).trim() === "") { contents[_IPAp] = []; } else if (output[_iPAS] != null && output[_iPAS][_i] != null) { contents[_IPAp] = de_IpamPoolAllocationSet(__getArrayIfSingleItem(output[_iPAS][_i]), context); @@ -73605,7 +73605,7 @@ const de_GetIpamPoolAllocationsResult = (output: any, context: __SerdeContext): */ const de_GetIpamPoolCidrsResult = (output: any, context: __SerdeContext): GetIpamPoolCidrsResult => { const contents: any = {}; - if (output.ipamPoolCidrSet === "") { + if (String(output.ipamPoolCidrSet).trim() === "") { contents[_IPCpam] = []; } else if (output[_iPCS] != null && output[_iPCS][_i] != null) { contents[_IPCpam] = de_IpamPoolCidrSet(__getArrayIfSingleItem(output[_iPCS][_i]), context); @@ -73624,7 +73624,7 @@ const de_GetIpamResourceCidrsResult = (output: any, context: __SerdeContext): Ge if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.ipamResourceCidrSet === "") { + if (String(output.ipamResourceCidrSet).trim() === "") { contents[_IRC] = []; } else if (output[_iRCS] != null && output[_iRCS][_i] != null) { contents[_IRC] = de_IpamResourceCidrSet(__getArrayIfSingleItem(output[_iRCS][_i]), context); @@ -73651,7 +73651,7 @@ const de_GetManagedPrefixListAssociationsResult = ( context: __SerdeContext ): GetManagedPrefixListAssociationsResult => { const contents: any = {}; - if (output.prefixListAssociationSet === "") { + if (String(output.prefixListAssociationSet).trim() === "") { contents[_PLA] = []; } else if (output[_pLAS] != null && output[_pLAS][_i] != null) { contents[_PLA] = de_PrefixListAssociationSet(__getArrayIfSingleItem(output[_pLAS][_i]), context); @@ -73670,7 +73670,7 @@ const de_GetManagedPrefixListEntriesResult = ( context: __SerdeContext ): GetManagedPrefixListEntriesResult => { const contents: any = {}; - if (output.entrySet === "") { + if (String(output.entrySet).trim() === "") { contents[_Ent] = []; } else if (output[_eSnt] != null && output[_eSnt][_i] != null) { contents[_Ent] = de_PrefixListEntrySet(__getArrayIfSingleItem(output[_eSnt][_i]), context); @@ -73695,7 +73695,7 @@ const de_GetNetworkInsightsAccessScopeAnalysisFindingsResult = ( if (output[_aSn] != null) { contents[_ASn] = __expectString(output[_aSn]); } - if (output.analysisFindingSet === "") { + if (String(output.analysisFindingSet).trim() === "") { contents[_AFn] = []; } else if (output[_aFS] != null && output[_aFS][_i] != null) { contents[_AFn] = de_AccessScopeAnalysisFindingList(__getArrayIfSingleItem(output[_aFS][_i]), context); @@ -73760,7 +73760,7 @@ const de_GetReservedInstancesExchangeQuoteResult = ( if (output[_rIVR] != null) { contents[_RIVR] = de_ReservationValue(output[_rIVR], context); } - if (output.reservedInstanceValueSet === "") { + if (String(output.reservedInstanceValueSet).trim() === "") { contents[_RIVS] = []; } else if (output[_rIVS] != null && output[_rIVS][_i] != null) { contents[_RIVS] = de_ReservedInstanceReservationValueSet(__getArrayIfSingleItem(output[_rIVS][_i]), context); @@ -73768,7 +73768,7 @@ const de_GetReservedInstancesExchangeQuoteResult = ( if (output[_tCVR] != null) { contents[_TCVR] = de_ReservationValue(output[_tCVR], context); } - if (output.targetConfigurationValueSet === "") { + if (String(output.targetConfigurationValueSet).trim() === "") { contents[_TCVS] = []; } else if (output[_tCVS] != null && output[_tCVS][_i] != null) { contents[_TCVS] = de_TargetReservationValueSet(__getArrayIfSingleItem(output[_tCVS][_i]), context); @@ -73787,7 +73787,7 @@ const de_GetRouteServerAssociationsResult = ( context: __SerdeContext ): GetRouteServerAssociationsResult => { const contents: any = {}; - if (output.routeServerAssociationSet === "") { + if (String(output.routeServerAssociationSet).trim() === "") { contents[_RSAou] = []; } else if (output[_rSAS] != null && output[_rSAS][_i] != null) { contents[_RSAou] = de_RouteServerAssociationsList(__getArrayIfSingleItem(output[_rSAS][_i]), context); @@ -73803,7 +73803,7 @@ const de_GetRouteServerPropagationsResult = ( context: __SerdeContext ): GetRouteServerPropagationsResult => { const contents: any = {}; - if (output.routeServerPropagationSet === "") { + if (String(output.routeServerPropagationSet).trim() === "") { contents[_RSPout] = []; } else if (output[_rSPSo] != null && output[_rSPSo][_i] != null) { contents[_RSPout] = de_RouteServerPropagationsList(__getArrayIfSingleItem(output[_rSPSo][_i]), context); @@ -73822,7 +73822,7 @@ const de_GetRouteServerRoutingDatabaseResult = ( if (output[_aRP] != null) { contents[_ARP] = __parseBoolean(output[_aRP]); } - if (output.routeSet === "") { + if (String(output.routeSet).trim() === "") { contents[_Rout] = []; } else if (output[_rSou] != null && output[_rSou][_i] != null) { contents[_Rout] = de_RouteServerRouteList(__getArrayIfSingleItem(output[_rSou][_i]), context); @@ -73841,7 +73841,7 @@ const de_GetSecurityGroupsForVpcResult = (output: any, context: __SerdeContext): if (output[_nTe] != null) { contents[_NT] = __expectString(output[_nTe]); } - if (output.securityGroupForVpcSet === "") { + if (String(output.securityGroupForVpcSet).trim() === "") { contents[_SGFV] = []; } else if (output[_sGFVS] != null && output[_sGFVS][_i] != null) { contents[_SGFV] = de_SecurityGroupForVpcList(__getArrayIfSingleItem(output[_sGFVS][_i]), context); @@ -73888,7 +73888,7 @@ const de_GetSnapshotBlockPublicAccessStateResult = ( */ const de_GetSpotPlacementScoresResult = (output: any, context: __SerdeContext): GetSpotPlacementScoresResult => { const contents: any = {}; - if (output.spotPlacementScoreSet === "") { + if (String(output.spotPlacementScoreSet).trim() === "") { contents[_SPS] = []; } else if (output[_sPSS] != null && output[_sPSS][_i] != null) { contents[_SPS] = de_SpotPlacementScores(__getArrayIfSingleItem(output[_sPSS][_i]), context); @@ -73904,12 +73904,12 @@ const de_GetSpotPlacementScoresResult = (output: any, context: __SerdeContext): */ const de_GetSubnetCidrReservationsResult = (output: any, context: __SerdeContext): GetSubnetCidrReservationsResult => { const contents: any = {}; - if (output.subnetIpv4CidrReservationSet === "") { + if (String(output.subnetIpv4CidrReservationSet).trim() === "") { contents[_SICR] = []; } else if (output[_sICRS] != null && output[_sICRS][_i] != null) { contents[_SICR] = de_SubnetCidrReservationList(__getArrayIfSingleItem(output[_sICRS][_i]), context); } - if (output.subnetIpv6CidrReservationSet === "") { + if (String(output.subnetIpv6CidrReservationSet).trim() === "") { contents[_SICRu] = []; } else if (output[_sICRSu] != null && output[_sICRSu][_i] != null) { contents[_SICRu] = de_SubnetCidrReservationList(__getArrayIfSingleItem(output[_sICRSu][_i]), context); @@ -73928,7 +73928,7 @@ const de_GetTransitGatewayAttachmentPropagationsResult = ( context: __SerdeContext ): GetTransitGatewayAttachmentPropagationsResult => { const contents: any = {}; - if (output.transitGatewayAttachmentPropagations === "") { + if (String(output.transitGatewayAttachmentPropagations).trim() === "") { contents[_TGAP] = []; } else if (output[_tGAP] != null && output[_tGAP][_i] != null) { contents[_TGAP] = de_TransitGatewayAttachmentPropagationList(__getArrayIfSingleItem(output[_tGAP][_i]), context); @@ -73947,7 +73947,7 @@ const de_GetTransitGatewayMulticastDomainAssociationsResult = ( context: __SerdeContext ): GetTransitGatewayMulticastDomainAssociationsResult => { const contents: any = {}; - if (output.multicastDomainAssociations === "") { + if (String(output.multicastDomainAssociations).trim() === "") { contents[_MDA] = []; } else if (output[_mDA] != null && output[_mDA][_i] != null) { contents[_MDA] = de_TransitGatewayMulticastDomainAssociationList(__getArrayIfSingleItem(output[_mDA][_i]), context); @@ -73966,7 +73966,7 @@ const de_GetTransitGatewayPolicyTableAssociationsResult = ( context: __SerdeContext ): GetTransitGatewayPolicyTableAssociationsResult => { const contents: any = {}; - if (output.associations === "") { + if (String(output.associations).trim() === "") { contents[_Ass] = []; } else if (output[_a] != null && output[_a][_i] != null) { contents[_Ass] = de_TransitGatewayPolicyTableAssociationList(__getArrayIfSingleItem(output[_a][_i]), context); @@ -73985,7 +73985,7 @@ const de_GetTransitGatewayPolicyTableEntriesResult = ( context: __SerdeContext ): GetTransitGatewayPolicyTableEntriesResult => { const contents: any = {}; - if (output.transitGatewayPolicyTableEntries === "") { + if (String(output.transitGatewayPolicyTableEntries).trim() === "") { contents[_TGPTE] = []; } else if (output[_tGPTE] != null && output[_tGPTE][_i] != null) { contents[_TGPTE] = de_TransitGatewayPolicyTableEntryList(__getArrayIfSingleItem(output[_tGPTE][_i]), context); @@ -74001,7 +74001,7 @@ const de_GetTransitGatewayPrefixListReferencesResult = ( context: __SerdeContext ): GetTransitGatewayPrefixListReferencesResult => { const contents: any = {}; - if (output.transitGatewayPrefixListReferenceSet === "") { + if (String(output.transitGatewayPrefixListReferenceSet).trim() === "") { contents[_TGPLRr] = []; } else if (output[_tGPLRS] != null && output[_tGPLRS][_i] != null) { contents[_TGPLRr] = de_TransitGatewayPrefixListReferenceSet(__getArrayIfSingleItem(output[_tGPLRS][_i]), context); @@ -74020,7 +74020,7 @@ const de_GetTransitGatewayRouteTableAssociationsResult = ( context: __SerdeContext ): GetTransitGatewayRouteTableAssociationsResult => { const contents: any = {}; - if (output.associations === "") { + if (String(output.associations).trim() === "") { contents[_Ass] = []; } else if (output[_a] != null && output[_a][_i] != null) { contents[_Ass] = de_TransitGatewayRouteTableAssociationList(__getArrayIfSingleItem(output[_a][_i]), context); @@ -74039,7 +74039,7 @@ const de_GetTransitGatewayRouteTablePropagationsResult = ( context: __SerdeContext ): GetTransitGatewayRouteTablePropagationsResult => { const contents: any = {}; - if (output.transitGatewayRouteTablePropagations === "") { + if (String(output.transitGatewayRouteTablePropagations).trim() === "") { contents[_TGRTP] = []; } else if (output[_tGRTP] != null && output[_tGRTP][_i] != null) { contents[_TGRTP] = de_TransitGatewayRouteTablePropagationList(__getArrayIfSingleItem(output[_tGRTP][_i]), context); @@ -74075,7 +74075,7 @@ const de_GetVerifiedAccessEndpointTargetsResult = ( context: __SerdeContext ): GetVerifiedAccessEndpointTargetsResult => { const contents: any = {}; - if (output.verifiedAccessEndpointTargetSet === "") { + if (String(output.verifiedAccessEndpointTargetSet).trim() === "") { contents[_VAET] = []; } else if (output[_vAETS] != null && output[_vAETS][_i] != null) { contents[_VAET] = de_VerifiedAccessEndpointTargetList(__getArrayIfSingleItem(output[_vAETS][_i]), context); @@ -74125,7 +74125,7 @@ const de_GetVpnConnectionDeviceTypesResult = ( context: __SerdeContext ): GetVpnConnectionDeviceTypesResult => { const contents: any = {}; - if (output.vpnConnectionDeviceTypeSet === "") { + if (String(output.vpnConnectionDeviceTypeSet).trim() === "") { contents[_VCDT] = []; } else if (output[_vCDTS] != null && output[_vCDTS][_i] != null) { contents[_VCDT] = de_VpnConnectionDeviceTypeList(__getArrayIfSingleItem(output[_vCDTS][_i]), context); @@ -74212,7 +74212,7 @@ const de_GpuDeviceMemoryInfo = (output: any, context: __SerdeContext): GpuDevice */ const de_GpuInfo = (output: any, context: __SerdeContext): GpuInfo => { const contents: any = {}; - if (output.gpus === "") { + if (String(output.gpus).trim() === "") { contents[_Gp] = []; } else if (output[_gp] != null && output[_gp][_i] != null) { contents[_Gp] = de_GpuDeviceInfoList(__getArrayIfSingleItem(output[_gp][_i]), context); @@ -74363,7 +74363,7 @@ const de_Host = (output: any, context: __SerdeContext): Host => { if (output[_hRI] != null) { contents[_HRI] = __expectString(output[_hRI]); } - if (output.instances === "") { + if (String(output.instances).trim() === "") { contents[_In] = []; } else if (output[_ins] != null && output[_ins][_i] != null) { contents[_In] = de_HostInstanceList(__getArrayIfSingleItem(output[_ins][_i]), context); @@ -74377,7 +74377,7 @@ const de_Host = (output: any, context: __SerdeContext): Host => { if (output[_rTel] != null) { contents[_RTel] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_rTel])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -74528,7 +74528,7 @@ const de_HostReservation = (output: any, context: __SerdeContext): HostReservati if (output[_end] != null) { contents[_End] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_end])); } - if (output.hostIdSet === "") { + if (String(output.hostIdSet).trim() === "") { contents[_HIS] = []; } else if (output[_hIS] != null && output[_hIS][_i] != null) { contents[_HIS] = de_ResponseHostIdSet(__getArrayIfSingleItem(output[_hIS][_i]), context); @@ -74557,7 +74557,7 @@ const de_HostReservation = (output: any, context: __SerdeContext): HostReservati if (output[_uP] != null) { contents[_UPp] = __expectString(output[_uP]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -74713,7 +74713,7 @@ const de_Image = (output: any, context: __SerdeContext): Image => { if (output[_uO] != null) { contents[_UO] = __expectString(output[_uO]); } - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -74745,7 +74745,7 @@ const de_Image = (output: any, context: __SerdeContext): Image => { if (output[_sRt] != null) { contents[_SRt] = de_StateReason(output[_sRt], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -74804,7 +74804,7 @@ const de_Image = (output: any, context: __SerdeContext): Image => { if (output[_iPs] != null) { contents[_Pu] = __parseBoolean(output[_iPs]); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -74865,17 +74865,17 @@ const de_ImageAttribute = (output: any, context: __SerdeContext): ImageAttribute if (output[_iIma] != null) { contents[_IIma] = __expectString(output[_iIma]); } - if (output.launchPermission === "") { + if (String(output.launchPermission).trim() === "") { contents[_LPau] = []; } else if (output[_lPa] != null && output[_lPa][_i] != null) { contents[_LPau] = de_LaunchPermissionList(__getArrayIfSingleItem(output[_lPa][_i]), context); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); } - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -74888,7 +74888,7 @@ const de_ImageAttribute = (output: any, context: __SerdeContext): ImageAttribute */ const de_ImageCriterion = (output: any, context: __SerdeContext): ImageCriterion => { const contents: any = {}; - if (output.imageProviderSet === "") { + if (String(output.imageProviderSet).trim() === "") { contents[_IPm] = []; } else if (output[_iPSm] != null && output[_iPSm][_i] != null) { contents[_IPm] = de_ImageProviderList(__getArrayIfSingleItem(output[_iPSm][_i]), context); @@ -75064,12 +75064,12 @@ const de_ImageUsageReport = (output: any, context: __SerdeContext): ImageUsageRe if (output[_rI] != null) { contents[_RIep] = __expectString(output[_rI]); } - if (output.resourceTypeSet === "") { + if (String(output.resourceTypeSet).trim() === "") { contents[_RTe] = []; } else if (output[_rTSe] != null && output[_rTSe][_i] != null) { contents[_RTe] = de_ImageUsageResourceTypeList(__getArrayIfSingleItem(output[_rTSe][_i]), context); } - if (output.accountIdSet === "") { + if (String(output.accountIdSet).trim() === "") { contents[_AIc] = []; } else if (output[_aISc] != null && output[_aISc][_i] != null) { contents[_AIc] = de_UserIdList(__getArrayIfSingleItem(output[_aISc][_i]), context); @@ -75086,7 +75086,7 @@ const de_ImageUsageReport = (output: any, context: __SerdeContext): ImageUsageRe if (output[_eT] != null) { contents[_ETx] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eT])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75150,7 +75150,7 @@ const de_ImageUsageResourceType = (output: any, context: __SerdeContext): ImageU if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.resourceTypeOptionSet === "") { + if (String(output.resourceTypeOptionSet).trim() === "") { contents[_RTO] = []; } else if (output[_rTOS] != null && output[_rTOS][_i] != null) { contents[_RTO] = de_ImageUsageResourceTypeOptionList(__getArrayIfSingleItem(output[_rTOS][_i]), context); @@ -75177,7 +75177,7 @@ const de_ImageUsageResourceTypeOption = (output: any, context: __SerdeContext): if (output[_oN] != null) { contents[_ON] = __expectString(output[_oN]); } - if (output.optionValueSet === "") { + if (String(output.optionValueSet).trim() === "") { contents[_OV] = []; } else if (output[_oVS] != null && output[_oVS][_i] != null) { contents[_OV] = de_ImageUsageResourceTypeOptionValuesList(__getArrayIfSingleItem(output[_oVS][_i]), context); @@ -75284,7 +75284,7 @@ const de_ImportImageResult = (output: any, context: __SerdeContext): ImportImage if (output[_pro] != null) { contents[_Prog] = __expectString(output[_pro]); } - if (output.snapshotDetailSet === "") { + if (String(output.snapshotDetailSet).trim() === "") { contents[_SDn] = []; } else if (output[_sDSn] != null && output[_sDSn][_i] != null) { contents[_SDn] = de_SnapshotDetailList(__getArrayIfSingleItem(output[_sDSn][_i]), context); @@ -75295,12 +75295,12 @@ const de_ImportImageResult = (output: any, context: __SerdeContext): ImportImage if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.licenseSpecifications === "") { + if (String(output.licenseSpecifications).trim() === "") { contents[_LSi] = []; } else if (output[_lS] != null && output[_lS][_i] != null) { contents[_LSi] = de_ImportImageLicenseSpecificationListResponse(__getArrayIfSingleItem(output[_lS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75346,7 +75346,7 @@ const de_ImportImageTask = (output: any, context: __SerdeContext): ImportImageTa if (output[_pro] != null) { contents[_Prog] = __expectString(output[_pro]); } - if (output.snapshotDetailSet === "") { + if (String(output.snapshotDetailSet).trim() === "") { contents[_SDn] = []; } else if (output[_sDSn] != null && output[_sDSn][_i] != null) { contents[_SDn] = de_SnapshotDetailList(__getArrayIfSingleItem(output[_sDSn][_i]), context); @@ -75357,12 +75357,12 @@ const de_ImportImageTask = (output: any, context: __SerdeContext): ImportImageTa if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.licenseSpecifications === "") { + if (String(output.licenseSpecifications).trim() === "") { contents[_LSi] = []; } else if (output[_lS] != null && output[_lS][_i] != null) { contents[_LSi] = de_ImportImageLicenseSpecificationListResponse(__getArrayIfSingleItem(output[_lS][_i]), context); @@ -75412,7 +75412,7 @@ const de_ImportInstanceTaskDetails = (output: any, context: __SerdeContext): Imp if (output[_pl] != null) { contents[_Pla] = __expectString(output[_pl]); } - if (output.volumes === "") { + if (String(output.volumes).trim() === "") { contents[_Vol] = []; } else if (output[_vo] != null && output[_vo][_i] != null) { contents[_Vol] = de_ImportInstanceVolumeDetailSet(__getArrayIfSingleItem(output[_vo][_i]), context); @@ -75477,7 +75477,7 @@ const de_ImportKeyPairResult = (output: any, context: __SerdeContext): ImportKey if (output[_kPI] != null) { contents[_KPI] = __expectString(output[_kPI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75499,7 +75499,7 @@ const de_ImportSnapshotResult = (output: any, context: __SerdeContext): ImportSn if (output[_sTD] != null) { contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75521,7 +75521,7 @@ const de_ImportSnapshotTask = (output: any, context: __SerdeContext): ImportSnap if (output[_sTD] != null) { contents[_STD] = de_SnapshotTaskDetail(output[_sTD], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75582,7 +75582,7 @@ const de_ImportVolumeTaskDetails = (output: any, context: __SerdeContext): Impor */ const de_InferenceAcceleratorInfo = (output: any, context: __SerdeContext): InferenceAcceleratorInfo => { const contents: any = {}; - if (output.accelerators === "") { + if (String(output.accelerators).trim() === "") { contents[_Acc] = []; } else if (output[_acc] != null && output[_acc][_mem] != null) { contents[_Acc] = de_InferenceDeviceInfoList(__getArrayIfSingleItem(output[_acc][_mem]), context); @@ -75671,7 +75671,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_arc] != null) { contents[_Arc] = __expectString(output[_arc]); } - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_InstanceBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -75694,12 +75694,12 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_iLn] != null) { contents[_ILn] = __expectString(output[_iLn]); } - if (output.elasticGpuAssociationSet === "") { + if (String(output.elasticGpuAssociationSet).trim() === "") { contents[_EGA] = []; } else if (output[_eGASl] != null && output[_eGASl][_i] != null) { contents[_EGA] = de_ElasticGpuAssociationList(__getArrayIfSingleItem(output[_eGASl][_i]), context); } - if (output.elasticInferenceAcceleratorAssociationSet === "") { + if (String(output.elasticInferenceAcceleratorAssociationSet).trim() === "") { contents[_EIAAl] = []; } else if (output[_eIAASl] != null && output[_eIAASl][_i] != null) { contents[_EIAAl] = de_ElasticInferenceAcceleratorAssociationList( @@ -75707,7 +75707,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { context ); } - if (output.networkInterfaceSet === "") { + if (String(output.networkInterfaceSet).trim() === "") { contents[_NI] = []; } else if (output[_nIS] != null && output[_nIS][_i] != null) { contents[_NI] = de_InstanceNetworkInterfaceList(__getArrayIfSingleItem(output[_nIS][_i]), context); @@ -75721,7 +75721,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_rDT] != null) { contents[_RDT] = __expectString(output[_rDT]); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_SG] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -75738,7 +75738,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_sRt] != null) { contents[_SRt] = de_StateReason(output[_sRt], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -75761,7 +75761,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_hO] != null) { contents[_HO] = de_HibernationOptions(output[_hO], context); } - if (output.licenseSet === "") { + if (String(output.licenseSet).trim() === "") { contents[_Lic] = []; } else if (output[_lSi] != null && output[_lSi][_i] != null) { contents[_Lic] = de_LicenseList(__getArrayIfSingleItem(output[_lSi][_i]), context); @@ -75829,7 +75829,7 @@ const de_Instance = (output: any, context: __SerdeContext): Instance => { if (output[_aLI] != null) { contents[_ALI] = __strictParseInt32(output[_aLI]) as number; } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -75906,7 +75906,7 @@ const de_InstanceAttachmentEnaSrdUdpSpecification = ( */ const de_InstanceAttribute = (output: any, context: __SerdeContext): InstanceAttribute => { const contents: any = {}; - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_InstanceBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -75935,7 +75935,7 @@ const de_InstanceAttribute = (output: any, context: __SerdeContext): InstanceAtt if (output[_ke] != null) { contents[_KI] = de_AttributeValue(output[_ke], context); } - if (output.productCodes === "") { + if (String(output.productCodes).trim() === "") { contents[_PCr] = []; } else if (output[_pC] != null && output[_pC][_i] != null) { contents[_PCr] = de_ProductCodeList(__getArrayIfSingleItem(output[_pC][_i]), context); @@ -75958,7 +75958,7 @@ const de_InstanceAttribute = (output: any, context: __SerdeContext): InstanceAtt if (output[_dASi] != null) { contents[_DASi] = de_AttributeBooleanValue(output[_dASi], context); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -76108,7 +76108,7 @@ const de_InstanceEventWindow = (output: any, context: __SerdeContext): InstanceE if (output[_iEWI] != null) { contents[_IEWI] = __expectString(output[_iEWI]); } - if (output.timeRangeSet === "") { + if (String(output.timeRangeSet).trim() === "") { contents[_TRi] = []; } else if (output[_tRSi] != null && output[_tRSi][_i] != null) { contents[_TRi] = de_InstanceEventWindowTimeRangeList(__getArrayIfSingleItem(output[_tRSi][_i]), context); @@ -76125,7 +76125,7 @@ const de_InstanceEventWindow = (output: any, context: __SerdeContext): InstanceE if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -76141,17 +76141,17 @@ const de_InstanceEventWindowAssociationTarget = ( context: __SerdeContext ): InstanceEventWindowAssociationTarget => { const contents: any = {}; - if (output.instanceIdSet === "") { + if (String(output.instanceIdSet).trim() === "") { contents[_IIns] = []; } else if (output[_iIS] != null && output[_iIS][_i] != null) { contents[_IIns] = de_InstanceIdList(__getArrayIfSingleItem(output[_iIS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.dedicatedHostIdSet === "") { + if (String(output.dedicatedHostIdSet).trim() === "") { contents[_DHI] = []; } else if (output[_dHIS] != null && output[_dHIS][_i] != null) { contents[_DHI] = de_DedicatedHostIdList(__getArrayIfSingleItem(output[_dHIS][_i]), context); @@ -76316,7 +76316,7 @@ const de_InstanceImageMetadata = (output: any, context: __SerdeContext): Instanc if (output[_iOIn] != null) { contents[_OIwn] = __expectString(output[_iOIn]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -76529,12 +76529,12 @@ const de_InstanceNetworkInterface = (output: any, context: __SerdeContext): Inst if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output.ipv6AddressesSet === "") { + if (String(output.ipv6AddressesSet).trim() === "") { contents[_IA] = []; } else if (output[_iASp] != null && output[_iASp][_i] != null) { contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); @@ -76554,7 +76554,7 @@ const de_InstanceNetworkInterface = (output: any, context: __SerdeContext): Inst if (output[_pIAr] != null) { contents[_PIAr] = __expectString(output[_pIAr]); } - if (output.privateIpAddressesSet === "") { + if (String(output.privateIpAddressesSet).trim() === "") { contents[_PIA] = []; } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { contents[_PIA] = de_InstancePrivateIpAddressList(__getArrayIfSingleItem(output[_pIAS][_i]), context); @@ -76574,12 +76574,12 @@ const de_InstanceNetworkInterface = (output: any, context: __SerdeContext): Inst if (output[_iTnt] != null) { contents[_ITn] = __expectString(output[_iTnt]); } - if (output.ipv4PrefixSet === "") { + if (String(output.ipv4PrefixSet).trim() === "") { contents[_IPp] = []; } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { contents[_IPp] = de_InstanceIpv4PrefixList(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } - if (output.ipv6PrefixSet === "") { + if (String(output.ipv6PrefixSet).trim() === "") { contents[_IP] = []; } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { contents[_IP] = de_InstanceIpv6PrefixList(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); @@ -76685,7 +76685,7 @@ const de_InstanceNetworkInterfaceSpecification = ( if (output[_dIe] != null) { contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } - if (output.SecurityGroupId === "") { + if (String(output.SecurityGroupId).trim() === "") { contents[_G] = []; } else if (output[_SGIe] != null && output[_SGIe][_SGIe] != null) { contents[_G] = de_SecurityGroupIdStringList(__getArrayIfSingleItem(output[_SGIe][_SGIe]), context); @@ -76693,7 +76693,7 @@ const de_InstanceNetworkInterfaceSpecification = ( if (output[_iAC] != null) { contents[_IAC] = __strictParseInt32(output[_iAC]) as number; } - if (output.ipv6AddressesSet === "") { + if (String(output.ipv6AddressesSet).trim() === "") { contents[_IA] = []; } else if (output[_iASp] != null && output[_iASp][_i] != null) { contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); @@ -76704,7 +76704,7 @@ const de_InstanceNetworkInterfaceSpecification = ( if (output[_pIAr] != null) { contents[_PIAr] = __expectString(output[_pIAr]); } - if (output.privateIpAddressesSet === "") { + if (String(output.privateIpAddressesSet).trim() === "") { contents[_PIA] = []; } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { contents[_PIA] = de_PrivateIpAddressSpecificationList(__getArrayIfSingleItem(output[_pIAS][_i]), context); @@ -76724,7 +76724,7 @@ const de_InstanceNetworkInterfaceSpecification = ( if (output[_NCI] != null) { contents[_NCI] = __strictParseInt32(output[_NCI]) as number; } - if (output.Ipv4Prefix === "") { + if (String(output.Ipv4Prefix).trim() === "") { contents[_IPp] = []; } else if (output[_IPpvr] != null && output[_IPpvr][_i] != null) { contents[_IPp] = de_Ipv4PrefixList(__getArrayIfSingleItem(output[_IPpvr][_i]), context); @@ -76732,7 +76732,7 @@ const de_InstanceNetworkInterfaceSpecification = ( if (output[_IPCp] != null) { contents[_IPCp] = __strictParseInt32(output[_IPCp]) as number; } - if (output.Ipv6Prefix === "") { + if (String(output.Ipv6Prefix).trim() === "") { contents[_IP] = []; } else if (output[_IPpvre] != null && output[_IPpvre][_i] != null) { contents[_IP] = de_Ipv6PrefixList(__getArrayIfSingleItem(output[_IPpvre][_i]), context); @@ -76825,7 +76825,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_mMB] != null) { contents[_MMB] = de_MemoryMiB(output[_mMB], context); } - if (output.cpuManufacturerSet === "") { + if (String(output.cpuManufacturerSet).trim() === "") { contents[_CM] = []; } else if (output[_cMS] != null && output[_cMS][_i] != null) { contents[_CM] = de_CpuManufacturerSet(__getArrayIfSingleItem(output[_cMS][_i]), context); @@ -76833,12 +76833,12 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_mGBPVC] != null) { contents[_MGBPVC] = de_MemoryGiBPerVCpu(output[_mGBPVC], context); } - if (output.excludedInstanceTypeSet === "") { + if (String(output.excludedInstanceTypeSet).trim() === "") { contents[_EIT] = []; } else if (output[_eITSx] != null && output[_eITSx][_i] != null) { contents[_EIT] = de_ExcludedInstanceTypeSet(__getArrayIfSingleItem(output[_eITSx][_i]), context); } - if (output.instanceGenerationSet === "") { + if (String(output.instanceGenerationSet).trim() === "") { contents[_IG] = []; } else if (output[_iGSn] != null && output[_iGSn][_i] != null) { contents[_IG] = de_InstanceGenerationSet(__getArrayIfSingleItem(output[_iGSn][_i]), context); @@ -76864,7 +76864,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_lSo] != null) { contents[_LSo] = __expectString(output[_lSo]); } - if (output.localStorageTypeSet === "") { + if (String(output.localStorageTypeSet).trim() === "") { contents[_LST] = []; } else if (output[_lSTS] != null && output[_lSTS][_i] != null) { contents[_LST] = de_LocalStorageTypeSet(__getArrayIfSingleItem(output[_lSTS][_i]), context); @@ -76875,7 +76875,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_bEBM] != null) { contents[_BEBM] = de_BaselineEbsBandwidthMbps(output[_bEBM], context); } - if (output.acceleratorTypeSet === "") { + if (String(output.acceleratorTypeSet).trim() === "") { contents[_ATc] = []; } else if (output[_aTSc] != null && output[_aTSc][_i] != null) { contents[_ATc] = de_AcceleratorTypeSet(__getArrayIfSingleItem(output[_aTSc][_i]), context); @@ -76883,12 +76883,12 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_aCc] != null) { contents[_ACc] = de_AcceleratorCount(output[_aCc], context); } - if (output.acceleratorManufacturerSet === "") { + if (String(output.acceleratorManufacturerSet).trim() === "") { contents[_AM] = []; } else if (output[_aMS] != null && output[_aMS][_i] != null) { contents[_AM] = de_AcceleratorManufacturerSet(__getArrayIfSingleItem(output[_aMS][_i]), context); } - if (output.acceleratorNameSet === "") { + if (String(output.acceleratorNameSet).trim() === "") { contents[_ANc] = []; } else if (output[_aNS] != null && output[_aNS][_i] != null) { contents[_ANc] = de_AcceleratorNameSet(__getArrayIfSingleItem(output[_aNS][_i]), context); @@ -76899,7 +76899,7 @@ const de_InstanceRequirements = (output: any, context: __SerdeContext): Instance if (output[_nBGe] != null) { contents[_NBGe] = de_NetworkBandwidthGbps(output[_nBGe], context); } - if (output.allowedInstanceTypeSet === "") { + if (String(output.allowedInstanceTypeSet).trim() === "") { contents[_AIT] = []; } else if (output[_aITS] != null && output[_aITS][_i] != null) { contents[_AIT] = de_AllowedInstanceTypeSet(__getArrayIfSingleItem(output[_aITS][_i]), context); @@ -76983,7 +76983,7 @@ const de_InstanceStatus = (output: any, context: __SerdeContext): InstanceStatus if (output[_op] != null) { contents[_O] = de_OperatorResponse(output[_op], context); } - if (output.eventsSet === "") { + if (String(output.eventsSet).trim() === "") { contents[_Ev] = []; } else if (output[_eSv] != null && output[_eSv][_i] != null) { contents[_Ev] = de_InstanceStatusEventList(__getArrayIfSingleItem(output[_eSv][_i]), context); @@ -77087,7 +77087,7 @@ const de_InstanceStatusList = (output: any, context: __SerdeContext): InstanceSt */ const de_InstanceStatusSummary = (output: any, context: __SerdeContext): InstanceStatusSummary => { const contents: any = {}; - if (output.details === "") { + if (String(output.details).trim() === "") { contents[_Det] = []; } else if (output[_det] != null && output[_det][_i] != null) { contents[_Det] = de_InstanceStatusDetailsList(__getArrayIfSingleItem(output[_det][_i]), context); @@ -77106,7 +77106,7 @@ const de_InstanceStorageInfo = (output: any, context: __SerdeContext): InstanceS if (output[_tSIGB] != null) { contents[_TSIGB] = __strictParseLong(output[_tSIGB]) as number; } - if (output.disks === "") { + if (String(output.disks).trim() === "") { contents[_Dis] = []; } else if (output[_dis] != null && output[_dis][_i] != null) { contents[_Dis] = de_DiskInfoList(__getArrayIfSingleItem(output[_dis][_i]), context); @@ -77139,7 +77139,7 @@ const de_InstanceTagNotificationAttribute = ( context: __SerdeContext ): InstanceTagNotificationAttribute => { const contents: any = {}; - if (output.instanceTagKeySet === "") { + if (String(output.instanceTagKeySet).trim() === "") { contents[_ITK] = []; } else if (output[_iTKS] != null && output[_iTKS][_i] != null) { contents[_ITK] = de_InstanceTagKeySet(__getArrayIfSingleItem(output[_iTKS][_i]), context); @@ -77164,7 +77164,7 @@ const de_InstanceTopology = (output: any, context: __SerdeContext): InstanceTopo if (output[_gN] != null) { contents[_GN] = __expectString(output[_gN]); } - if (output.networkNodeSet === "") { + if (String(output.networkNodeSet).trim() === "") { contents[_NN] = []; } else if (output[_nNS] != null && output[_nNS][_i] != null) { contents[_NN] = de_NetworkNodesList(__getArrayIfSingleItem(output[_nNS][_i]), context); @@ -77195,17 +77195,17 @@ const de_InstanceTypeInfo = (output: any, context: __SerdeContext): InstanceType if (output[_fTE] != null) { contents[_FTE] = __parseBoolean(output[_fTE]); } - if (output.supportedUsageClasses === "") { + if (String(output.supportedUsageClasses).trim() === "") { contents[_SUC] = []; } else if (output[_sUC] != null && output[_sUC][_i] != null) { contents[_SUC] = de_UsageClassTypeList(__getArrayIfSingleItem(output[_sUC][_i]), context); } - if (output.supportedRootDeviceTypes === "") { + if (String(output.supportedRootDeviceTypes).trim() === "") { contents[_SRDT] = []; } else if (output[_sRDT] != null && output[_sRDT][_i] != null) { contents[_SRDT] = de_RootDeviceTypeList(__getArrayIfSingleItem(output[_sRDT][_i]), context); } - if (output.supportedVirtualizationTypes === "") { + if (String(output.supportedVirtualizationTypes).trim() === "") { contents[_SVT] = []; } else if (output[_sVT] != null && output[_sVT][_i] != null) { contents[_SVT] = de_VirtualizationTypeList(__getArrayIfSingleItem(output[_sVT][_i]), context); @@ -77261,7 +77261,7 @@ const de_InstanceTypeInfo = (output: any, context: __SerdeContext): InstanceType if (output[_aRSu] != null) { contents[_ARSu] = __parseBoolean(output[_aRSu]); } - if (output.supportedBootModes === "") { + if (String(output.supportedBootModes).trim() === "") { contents[_SBM] = []; } else if (output[_sBM] != null && output[_sBM][_i] != null) { contents[_SBM] = de_BootModeTypeList(__getArrayIfSingleItem(output[_sBM][_i]), context); @@ -77398,7 +77398,7 @@ const de_InstanceUsageSet = (output: any, context: __SerdeContext): InstanceUsag */ const de_InternetGateway = (output: any, context: __SerdeContext): InternetGateway => { const contents: any = {}; - if (output.attachmentSet === "") { + if (String(output.attachmentSet).trim() === "") { contents[_Atta] = []; } else if (output[_aSt] != null && output[_aSt][_i] != null) { contents[_Atta] = de_InternetGatewayAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); @@ -77409,7 +77409,7 @@ const de_InternetGateway = (output: any, context: __SerdeContext): InternetGatew if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -77493,7 +77493,7 @@ const de_Ipam = (output: any, context: __SerdeContext): Ipam => { if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.operatingRegionSet === "") { + if (String(output.operatingRegionSet).trim() === "") { contents[_OR] = []; } else if (output[_oRS] != null && output[_oRS][_i] != null) { contents[_OR] = de_IpamOperatingRegionSet(__getArrayIfSingleItem(output[_oRS][_i]), context); @@ -77501,7 +77501,7 @@ const de_Ipam = (output: any, context: __SerdeContext): Ipam => { if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -77675,7 +77675,7 @@ const de_IpamDiscoveredPublicAddress = (output: any, context: __SerdeContext): I if (output[_nBG] != null) { contents[_NBG] = __expectString(output[_nBG]); } - if (output.securityGroupSet === "") { + if (String(output.securityGroupSet).trim() === "") { contents[_SG] = []; } else if (output[_sGS] != null && output[_sGS][_i] != null) { contents[_SG] = de_IpamPublicAddressSecurityGroupList(__getArrayIfSingleItem(output[_sGS][_i]), context); @@ -77723,7 +77723,7 @@ const de_IpamDiscoveredResourceCidr = (output: any, context: __SerdeContext): Ip if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.resourceTagSet === "") { + if (String(output.resourceTagSet).trim() === "") { contents[_RTesou] = []; } else if (output[_rTSes] != null && output[_rTSes][_i] != null) { contents[_RTesou] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_rTSes][_i]), context); @@ -77809,7 +77809,7 @@ const de_IpamExternalResourceVerificationToken = ( if (output[_sta] != null) { contents[_Statu] = __expectString(output[_sta]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -77943,12 +77943,12 @@ const de_IpamPool = (output: any, context: __SerdeContext): IpamPool => { if (output[_aDNL] != null) { contents[_ADNL] = __strictParseInt32(output[_aDNL]) as number; } - if (output.allocationResourceTagSet === "") { + if (String(output.allocationResourceTagSet).trim() === "") { contents[_ARTl] = []; } else if (output[_aRTS] != null && output[_aRTS][_i] != null) { contents[_ARTl] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_aRTS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78142,7 +78142,7 @@ const de_IpamPublicAddressTagList = (output: any, context: __SerdeContext): Ipam */ const de_IpamPublicAddressTags = (output: any, context: __SerdeContext): IpamPublicAddressTags => { const contents: any = {}; - if (output.eipTagSet === "") { + if (String(output.eipTagSet).trim() === "") { contents[_ETi] = []; } else if (output[_eTSi] != null && output[_eTSi][_i] != null) { contents[_ETi] = de_IpamPublicAddressTagList(__getArrayIfSingleItem(output[_eTSi][_i]), context); @@ -78182,7 +78182,7 @@ const de_IpamResourceCidr = (output: any, context: __SerdeContext): IpamResource if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.resourceTagSet === "") { + if (String(output.resourceTagSet).trim() === "") { contents[_RTesou] = []; } else if (output[_rTSes] != null && output[_rTSes][_i] != null) { contents[_RTesou] = de_IpamResourceTagList(__getArrayIfSingleItem(output[_rTSes][_i]), context); @@ -78239,7 +78239,7 @@ const de_IpamResourceDiscovery = (output: any, context: __SerdeContext): IpamRes if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.operatingRegionSet === "") { + if (String(output.operatingRegionSet).trim() === "") { contents[_OR] = []; } else if (output[_oRS] != null && output[_oRS][_i] != null) { contents[_OR] = de_IpamOperatingRegionSet(__getArrayIfSingleItem(output[_oRS][_i]), context); @@ -78250,12 +78250,12 @@ const de_IpamResourceDiscovery = (output: any, context: __SerdeContext): IpamRes if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.organizationalUnitExclusionSet === "") { + if (String(output.organizationalUnitExclusionSet).trim() === "") { contents[_OUE] = []; } else if (output[_oUES] != null && output[_oUES][_i] != null) { contents[_OUE] = de_IpamOrganizationalUnitExclusionSet(__getArrayIfSingleItem(output[_oUES][_i]), context); @@ -78301,7 +78301,7 @@ const de_IpamResourceDiscoveryAssociation = ( if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78394,7 +78394,7 @@ const de_IpamScope = (output: any, context: __SerdeContext): IpamScope => { if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78438,22 +78438,22 @@ const de_IpPermission = (output: any, context: __SerdeContext): IpPermission => if (output[_tPo] != null) { contents[_TP] = __strictParseInt32(output[_tPo]) as number; } - if (output.groups === "") { + if (String(output.groups).trim() === "") { contents[_UIGP] = []; } else if (output[_gr] != null && output[_gr][_i] != null) { contents[_UIGP] = de_UserIdGroupPairList(__getArrayIfSingleItem(output[_gr][_i]), context); } - if (output.ipRanges === "") { + if (String(output.ipRanges).trim() === "") { contents[_IRp] = []; } else if (output[_iRpa] != null && output[_iRpa][_i] != null) { contents[_IRp] = de_IpRangeList(__getArrayIfSingleItem(output[_iRpa][_i]), context); } - if (output.ipv6Ranges === "") { + if (String(output.ipv6Ranges).trim() === "") { contents[_IRpv] = []; } else if (output[_iRpv] != null && output[_iRpv][_i] != null) { contents[_IRpv] = de_Ipv6RangeList(__getArrayIfSingleItem(output[_iRpv][_i]), context); } - if (output.prefixListIds === "") { + if (String(output.prefixListIds).trim() === "") { contents[_PLIr] = []; } else if (output[_pLIr] != null && output[_pLIr][_i] != null) { contents[_PLIr] = de_PrefixListIdList(__getArrayIfSingleItem(output[_pLIr][_i]), context); @@ -78654,12 +78654,12 @@ const de_Ipv6Pool = (output: any, context: __SerdeContext): Ipv6Pool => { if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.poolCidrBlockSet === "") { + if (String(output.poolCidrBlockSet).trim() === "") { contents[_PCBo] = []; } else if (output[_pCBS] != null && output[_pCBS][_i] != null) { contents[_PCBo] = de_PoolCidrBlocksSet(__getArrayIfSingleItem(output[_pCBS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78777,7 +78777,7 @@ const de_KeyPair = (output: any, context: __SerdeContext): KeyPair => { if (output[_kPI] != null) { contents[_KPI] = __expectString(output[_kPI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78805,7 +78805,7 @@ const de_KeyPairInfo = (output: any, context: __SerdeContext): KeyPairInfo => { if (output[_kT] != null) { contents[_KT] = __expectString(output[_kT]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -78892,7 +78892,7 @@ const de_LaunchSpecification = (output: any, context: __SerdeContext): LaunchSpe if (output[_aTdd] != null) { contents[_ATd] = __expectString(output[_aTdd]); } - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -78915,7 +78915,7 @@ const de_LaunchSpecification = (output: any, context: __SerdeContext): LaunchSpe if (output[_kN] != null) { contents[_KN] = __expectString(output[_kN]); } - if (output.networkInterfaceSet === "") { + if (String(output.networkInterfaceSet).trim() === "") { contents[_NI] = []; } else if (output[_nIS] != null && output[_nIS][_i] != null) { contents[_NI] = de_InstanceNetworkInterfaceSpecificationList(__getArrayIfSingleItem(output[_nIS][_i]), context); @@ -78929,7 +78929,7 @@ const de_LaunchSpecification = (output: any, context: __SerdeContext): LaunchSpe if (output[_sIu] != null) { contents[_SIub] = __expectString(output[_sIu]); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_SG] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -78974,7 +78974,7 @@ const de_LaunchTemplate = (output: any, context: __SerdeContext): LaunchTemplate if (output[_lVN] != null) { contents[_LVN] = __strictParseLong(output[_lVN]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -79064,7 +79064,7 @@ const de_LaunchTemplateConfig = (output: any, context: __SerdeContext): LaunchTe if (output[_lTS] != null) { contents[_LTS] = de_FleetLaunchTemplateSpecification(output[_lTS], context); } - if (output.overrides === "") { + if (String(output.overrides).trim() === "") { contents[_Ov] = []; } else if (output[_ov] != null && output[_ov][_i] != null) { contents[_Ov] = de_LaunchTemplateOverridesList(__getArrayIfSingleItem(output[_ov][_i]), context); @@ -79322,7 +79322,7 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( if (output[_dIe] != null) { contents[_DIev] = __strictParseInt32(output[_dIe]) as number; } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_gIr] != null) { contents[_G] = de_GroupIdStringList(__getArrayIfSingleItem(output[_gS][_gIr]), context); @@ -79333,7 +79333,7 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( if (output[_iAC] != null) { contents[_IAC] = __strictParseInt32(output[_iAC]) as number; } - if (output.ipv6AddressesSet === "") { + if (String(output.ipv6AddressesSet).trim() === "") { contents[_IA] = []; } else if (output[_iASp] != null && output[_iASp][_i] != null) { contents[_IA] = de_InstanceIpv6AddressList(__getArrayIfSingleItem(output[_iASp][_i]), context); @@ -79344,7 +79344,7 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( if (output[_pIAr] != null) { contents[_PIAr] = __expectString(output[_pIAr]); } - if (output.privateIpAddressesSet === "") { + if (String(output.privateIpAddressesSet).trim() === "") { contents[_PIA] = []; } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { contents[_PIA] = de_PrivateIpAddressSpecificationList(__getArrayIfSingleItem(output[_pIAS][_i]), context); @@ -79358,7 +79358,7 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( if (output[_nCI] != null) { contents[_NCI] = __strictParseInt32(output[_nCI]) as number; } - if (output.ipv4PrefixSet === "") { + if (String(output.ipv4PrefixSet).trim() === "") { contents[_IPp] = []; } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { contents[_IPp] = de_Ipv4PrefixListResponse(__getArrayIfSingleItem(output[_iPSpv][_i]), context); @@ -79366,7 +79366,7 @@ const de_LaunchTemplateInstanceNetworkInterfaceSpecification = ( if (output[_iPCp] != null) { contents[_IPCp] = __strictParseInt32(output[_iPCp]) as number; } - if (output.ipv6PrefixSet === "") { + if (String(output.ipv6PrefixSet).trim() === "") { contents[_IP] = []; } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { contents[_IP] = de_Ipv6PrefixListResponse(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); @@ -79593,7 +79593,7 @@ const de_LaunchTemplateTagSpecification = (output: any, context: __SerdeContext) if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -79688,7 +79688,7 @@ const de_LicenseList = (output: any, context: __SerdeContext): LicenseConfigurat */ const de_ListImagesInRecycleBinResult = (output: any, context: __SerdeContext): ListImagesInRecycleBinResult => { const contents: any = {}; - if (output.imageSet === "") { + if (String(output.imageSet).trim() === "") { contents[_Ima] = []; } else if (output[_iSmag] != null && output[_iSmag][_i] != null) { contents[_Ima] = de_ImageRecycleBinInfoList(__getArrayIfSingleItem(output[_iSmag][_i]), context); @@ -79704,7 +79704,7 @@ const de_ListImagesInRecycleBinResult = (output: any, context: __SerdeContext): */ const de_ListSnapshotsInRecycleBinResult = (output: any, context: __SerdeContext): ListSnapshotsInRecycleBinResult => { const contents: any = {}; - if (output.snapshotSet === "") { + if (String(output.snapshotSet).trim() === "") { contents[_Sn] = []; } else if (output[_sS] != null && output[_sS][_i] != null) { contents[_Sn] = de_SnapshotRecycleBinInfoList(__getArrayIfSingleItem(output[_sS][_i]), context); @@ -79771,7 +79771,7 @@ const de_LocalGateway = (output: any, context: __SerdeContext): LocalGateway => if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -79854,7 +79854,7 @@ const de_LocalGatewayRouteTable = (output: any, context: __SerdeContext): LocalG if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -79908,7 +79908,7 @@ const de_LocalGatewayRouteTableVirtualInterfaceGroupAssociation = ( if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -79959,7 +79959,7 @@ const de_LocalGatewayRouteTableVpcAssociation = ( if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -80033,7 +80033,7 @@ const de_LocalGatewayVirtualInterface = (output: any, context: __SerdeContext): if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -80055,7 +80055,7 @@ const de_LocalGatewayVirtualInterfaceGroup = ( if (output[_lGVIGI] != null) { contents[_LGVIGI] = __expectString(output[_lGVIGI]); } - if (output.localGatewayVirtualInterfaceIdSet === "") { + if (String(output.localGatewayVirtualInterfaceIdSet).trim() === "") { contents[_LGVIIo] = []; } else if (output[_lGVIIS] != null && output[_lGVIIS][_i] != null) { contents[_LGVIIo] = de_LocalGatewayVirtualInterfaceIdSet(__getArrayIfSingleItem(output[_lGVIIS][_i]), context); @@ -80075,7 +80075,7 @@ const de_LocalGatewayVirtualInterfaceGroup = ( if (output[_lGVIGA] != null) { contents[_LGVIGA] = __expectString(output[_lGVIGA]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -80219,7 +80219,7 @@ const de_MacHost = (output: any, context: __SerdeContext): MacHost => { if (output[_hI] != null) { contents[_HIo] = __expectString(output[_hI]); } - if (output.macOSLatestSupportedVersionSet === "") { + if (String(output.macOSLatestSupportedVersionSet).trim() === "") { contents[_MOSLSV] = []; } else if (output[_mOSLSVS] != null && output[_mOSLSVS][_i] != null) { contents[_MOSLSV] = de_MacOSVersionStringList(__getArrayIfSingleItem(output[_mOSLSVS][_i]), context); @@ -80255,7 +80255,7 @@ const de_MacModificationTask = (output: any, context: __SerdeContext): MacModifi if (output[_sT] != null) { contents[_STt] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_sT])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -80372,7 +80372,7 @@ const de_ManagedPrefixList = (output: any, context: __SerdeContext): ManagedPref if (output[_ve] != null) { contents[_V] = __strictParseLong(output[_ve]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -80410,7 +80410,7 @@ const de_MarketplaceProductCodeList = (output: any, context: __SerdeContext): st */ const de_MediaAcceleratorInfo = (output: any, context: __SerdeContext): MediaAcceleratorInfo => { const contents: any = {}; - if (output.accelerators === "") { + if (String(output.accelerators).trim() === "") { contents[_Acc] = []; } else if (output[_acc] != null && output[_acc][_i] != null) { contents[_Acc] = de_MediaDeviceInfoList(__getArrayIfSingleItem(output[_acc][_i]), context); @@ -80646,12 +80646,12 @@ const de_ModifyFpgaImageAttributeResult = (output: any, context: __SerdeContext) */ const de_ModifyHostsResult = (output: any, context: __SerdeContext): ModifyHostsResult => { const contents: any = {}; - if (output.successful === "") { + if (String(output.successful).trim() === "") { contents[_Suc] = []; } else if (output[_suc] != null && output[_suc][_i] != null) { contents[_Suc] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_suc][_i]), context); } - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemList(__getArrayIfSingleItem(output[_u][_i]), context); @@ -80712,12 +80712,12 @@ const de_ModifyInstanceCreditSpecificationResult = ( context: __SerdeContext ): ModifyInstanceCreditSpecificationResult => { const contents: any = {}; - if (output.successfulInstanceCreditSpecificationSet === "") { + if (String(output.successfulInstanceCreditSpecificationSet).trim() === "") { contents[_SICS] = []; } else if (output[_sICSS] != null && output[_sICSS][_i] != null) { contents[_SICS] = de_SuccessfulInstanceCreditSpecificationSet(__getArrayIfSingleItem(output[_sICSS][_i]), context); } - if (output.unsuccessfulInstanceCreditSpecificationSet === "") { + if (String(output.unsuccessfulInstanceCreditSpecificationSet).trim() === "") { contents[_UICS] = []; } else if (output[_uICSS] != null && output[_uICSS][_i] != null) { contents[_UICS] = de_UnsuccessfulInstanceCreditSpecificationSet( @@ -81297,7 +81297,7 @@ const de_ModifyVpcEndpointServicePermissionsResult = ( context: __SerdeContext ): ModifyVpcEndpointServicePermissionsResult => { const contents: any = {}; - if (output.addedPrincipalSet === "") { + if (String(output.addedPrincipalSet).trim() === "") { contents[_APd] = []; } else if (output[_aPS] != null && output[_aPS][_i] != null) { contents[_APd] = de_AddedPrincipalSet(__getArrayIfSingleItem(output[_aPS][_i]), context); @@ -81402,7 +81402,7 @@ const de_Monitoring = (output: any, context: __SerdeContext): Monitoring => { */ const de_MonitorInstancesResult = (output: any, context: __SerdeContext): MonitorInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_IMn] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_IMn] = de_InstanceMonitoringList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -81497,7 +81497,7 @@ const de_NatGateway = (output: any, context: __SerdeContext): NatGateway => { if (output[_fM] != null) { contents[_FM] = __expectString(output[_fM]); } - if (output.natGatewayAddressSet === "") { + if (String(output.natGatewayAddressSet).trim() === "") { contents[_NGA] = []; } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); @@ -81517,7 +81517,7 @@ const de_NatGateway = (output: any, context: __SerdeContext): NatGateway => { if (output[_vI] != null) { contents[_VI] = __expectString(output[_vI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -81616,12 +81616,12 @@ const de_NativeApplicationOidcOptions = (output: any, context: __SerdeContext): */ const de_NetworkAcl = (output: any, context: __SerdeContext): NetworkAcl => { const contents: any = {}; - if (output.associationSet === "") { + if (String(output.associationSet).trim() === "") { contents[_Ass] = []; } else if (output[_aSss] != null && output[_aSss][_i] != null) { contents[_Ass] = de_NetworkAclAssociationList(__getArrayIfSingleItem(output[_aSss][_i]), context); } - if (output.entrySet === "") { + if (String(output.entrySet).trim() === "") { contents[_Ent] = []; } else if (output[_eSnt] != null && output[_eSnt][_i] != null) { contents[_Ent] = de_NetworkAclEntryList(__getArrayIfSingleItem(output[_eSnt][_i]), context); @@ -81632,7 +81632,7 @@ const de_NetworkAcl = (output: any, context: __SerdeContext): NetworkAcl => { if (output[_nAI] != null) { contents[_NAI] = __expectString(output[_nAI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -81802,7 +81802,7 @@ const de_NetworkInfo = (output: any, context: __SerdeContext): NetworkInfo => { if (output[_dNCI] != null) { contents[_DNCI] = __strictParseInt32(output[_dNCI]) as number; } - if (output.networkCards === "") { + if (String(output.networkCards).trim() === "") { contents[_NC] = []; } else if (output[_nC] != null && output[_nC][_i] != null) { contents[_NC] = de_NetworkCardInfoList(__getArrayIfSingleItem(output[_nC][_i]), context); @@ -81831,7 +81831,7 @@ const de_NetworkInfo = (output: any, context: __SerdeContext): NetworkInfo => { if (output[_eSSn] != null) { contents[_ESSn] = __parseBoolean(output[_eSSn]); } - if (output.bandwidthWeightings === "") { + if (String(output.bandwidthWeightings).trim() === "") { contents[_BWa] = []; } else if (output[_bWa] != null && output[_bWa][_i] != null) { contents[_BWa] = de_BandwidthWeightingTypeList(__getArrayIfSingleItem(output[_bWa][_i]), context); @@ -81859,7 +81859,7 @@ const de_NetworkInsightsAccessScope = (output: any, context: __SerdeContext): Ne if (output[_uDp] != null) { contents[_UDp] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_uDp])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -81905,7 +81905,7 @@ const de_NetworkInsightsAccessScopeAnalysis = ( if (output[_aEC] != null) { contents[_AEC] = __strictParseInt32(output[_aEC]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -81938,12 +81938,12 @@ const de_NetworkInsightsAccessScopeContent = ( if (output[_nIASI] != null) { contents[_NIASI] = __expectString(output[_nIASI]); } - if (output.matchPathSet === "") { + if (String(output.matchPathSet).trim() === "") { contents[_MP] = []; } else if (output[_mPSa] != null && output[_mPSa][_i] != null) { contents[_MP] = de_AccessScopePathList(__getArrayIfSingleItem(output[_mPSa][_i]), context); } - if (output.excludePathSet === "") { + if (String(output.excludePathSet).trim() === "") { contents[_EP] = []; } else if (output[_ePS] != null && output[_ePS][_i] != null) { contents[_EP] = de_AccessScopePathList(__getArrayIfSingleItem(output[_ePS][_i]), context); @@ -81976,17 +81976,17 @@ const de_NetworkInsightsAnalysis = (output: any, context: __SerdeContext): Netwo if (output[_nIPI] != null) { contents[_NIPI] = __expectString(output[_nIPI]); } - if (output.additionalAccountSet === "") { + if (String(output.additionalAccountSet).trim() === "") { contents[_AAd] = []; } else if (output[_aASd] != null && output[_aASd][_i] != null) { contents[_AAd] = de_ValueStringList(__getArrayIfSingleItem(output[_aASd][_i]), context); } - if (output.filterInArnSet === "") { + if (String(output.filterInArnSet).trim() === "") { contents[_FIA] = []; } else if (output[_fIAS] != null && output[_fIAS][_i] != null) { contents[_FIA] = de_ArnList(__getArrayIfSingleItem(output[_fIAS][_i]), context); } - if (output.filterOutArnSet === "") { + if (String(output.filterOutArnSet).trim() === "") { contents[_FOA] = []; } else if (output[_fOAS] != null && output[_fOAS][_i] != null) { contents[_FOA] = de_ArnList(__getArrayIfSingleItem(output[_fOAS][_i]), context); @@ -82006,32 +82006,32 @@ const de_NetworkInsightsAnalysis = (output: any, context: __SerdeContext): Netwo if (output[_nPF] != null) { contents[_NPF] = __parseBoolean(output[_nPF]); } - if (output.forwardPathComponentSet === "") { + if (String(output.forwardPathComponentSet).trim() === "") { contents[_FPC] = []; } else if (output[_fPCS] != null && output[_fPCS][_i] != null) { contents[_FPC] = de_PathComponentList(__getArrayIfSingleItem(output[_fPCS][_i]), context); } - if (output.returnPathComponentSet === "") { + if (String(output.returnPathComponentSet).trim() === "") { contents[_RPC] = []; } else if (output[_rPCS] != null && output[_rPCS][_i] != null) { contents[_RPC] = de_PathComponentList(__getArrayIfSingleItem(output[_rPCS][_i]), context); } - if (output.explanationSet === "") { + if (String(output.explanationSet).trim() === "") { contents[_Ex] = []; } else if (output[_eSx] != null && output[_eSx][_i] != null) { contents[_Ex] = de_ExplanationList(__getArrayIfSingleItem(output[_eSx][_i]), context); } - if (output.alternatePathHintSet === "") { + if (String(output.alternatePathHintSet).trim() === "") { contents[_APH] = []; } else if (output[_aPHS] != null && output[_aPHS][_i] != null) { contents[_APH] = de_AlternatePathHintList(__getArrayIfSingleItem(output[_aPHS][_i]), context); } - if (output.suggestedAccountSet === "") { + if (String(output.suggestedAccountSet).trim() === "") { contents[_SAu] = []; } else if (output[_sASu] != null && output[_sASu][_i] != null) { contents[_SAu] = de_ValueStringList(__getArrayIfSingleItem(output[_sASu][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -82088,7 +82088,7 @@ const de_NetworkInsightsPath = (output: any, context: __SerdeContext): NetworkIn if (output[_dPes] != null) { contents[_DPe] = __strictParseInt32(output[_dPes]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -82133,7 +82133,7 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -82141,7 +82141,7 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter if (output[_iTnt] != null) { contents[_ITn] = __expectString(output[_iTnt]); } - if (output.ipv6AddressesSet === "") { + if (String(output.ipv6AddressesSet).trim() === "") { contents[_IA] = []; } else if (output[_iASp] != null && output[_iASp][_i] != null) { contents[_IA] = de_NetworkInterfaceIpv6AddressesList(__getArrayIfSingleItem(output[_iASp][_i]), context); @@ -82170,17 +82170,17 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter if (output[_pIAr] != null) { contents[_PIAr] = __expectString(output[_pIAr]); } - if (output.privateIpAddressesSet === "") { + if (String(output.privateIpAddressesSet).trim() === "") { contents[_PIA] = []; } else if (output[_pIAS] != null && output[_pIAS][_i] != null) { contents[_PIA] = de_NetworkInterfacePrivateIpAddressList(__getArrayIfSingleItem(output[_pIAS][_i]), context); } - if (output.ipv4PrefixSet === "") { + if (String(output.ipv4PrefixSet).trim() === "") { contents[_IPp] = []; } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { contents[_IPp] = de_Ipv4PrefixesList(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } - if (output.ipv6PrefixSet === "") { + if (String(output.ipv6PrefixSet).trim() === "") { contents[_IP] = []; } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { contents[_IP] = de_Ipv6PrefixesList(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); @@ -82200,7 +82200,7 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter if (output[_sIu] != null) { contents[_SIub] = __expectString(output[_sIu]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_TSag] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_TSag] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -82220,7 +82220,7 @@ const de_NetworkInterface = (output: any, context: __SerdeContext): NetworkInter if (output[_op] != null) { contents[_O] = de_OperatorResponse(output[_op], context); } - if (output.associatedSubnetSet === "") { + if (String(output.associatedSubnetSet).trim() === "") { contents[_ASsso] = []; } else if (output[_aSSs] != null && output[_aSSs][_i] != null) { contents[_ASsso] = de_AssociatedSubnetList(__getArrayIfSingleItem(output[_aSSs][_i]), context); @@ -82519,7 +82519,7 @@ const de_NeuronDeviceMemoryInfo = (output: any, context: __SerdeContext): Neuron */ const de_NeuronInfo = (output: any, context: __SerdeContext): NeuronInfo => { const contents: any = {}; - if (output.neuronDevices === "") { + if (String(output.neuronDevices).trim() === "") { contents[_NDe] = []; } else if (output[_nDe] != null && output[_nDe][_i] != null) { contents[_NDe] = de_NeuronDeviceInfoList(__getArrayIfSingleItem(output[_nDe][_i]), context); @@ -82535,7 +82535,7 @@ const de_NeuronInfo = (output: any, context: __SerdeContext): NeuronInfo => { */ const de_NitroTpmInfo = (output: any, context: __SerdeContext): NitroTpmInfo => { const contents: any = {}; - if (output.supportedVersions === "") { + if (String(output.supportedVersions).trim() === "") { contents[_SVu] = []; } else if (output[_sVu] != null && output[_sVu][_i] != null) { contents[_SVu] = de_NitroTpmSupportedVersionsList(__getArrayIfSingleItem(output[_sVu][_i]), context); @@ -82651,17 +82651,17 @@ const de_OutpostLag = (output: any, context: __SerdeContext): OutpostLag => { if (output[_oLI] != null) { contents[_OLI] = __expectString(output[_oLI]); } - if (output.localGatewayVirtualInterfaceIdSet === "") { + if (String(output.localGatewayVirtualInterfaceIdSet).trim() === "") { contents[_LGVIIo] = []; } else if (output[_lGVIIS] != null && output[_lGVIIS][_i] != null) { contents[_LGVIIo] = de_LocalGatewayVirtualInterfaceIdSet(__getArrayIfSingleItem(output[_lGVIIS][_i]), context); } - if (output.serviceLinkVirtualInterfaceIdSet === "") { + if (String(output.serviceLinkVirtualInterfaceIdSet).trim() === "") { contents[_SLVII] = []; } else if (output[_sLVIIS] != null && output[_sLVIIS][_i] != null) { contents[_SLVII] = de_ServiceLinkVirtualInterfaceIdSet(__getArrayIfSingleItem(output[_sLVIIS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -82685,37 +82685,37 @@ const de_OutpostLagSet = (output: any, context: __SerdeContext): OutpostLag[] => */ const de_PacketHeaderStatement = (output: any, context: __SerdeContext): PacketHeaderStatement => { const contents: any = {}; - if (output.sourceAddressSet === "") { + if (String(output.sourceAddressSet).trim() === "") { contents[_SAo] = []; } else if (output[_sAS] != null && output[_sAS][_i] != null) { contents[_SAo] = de_ValueStringList(__getArrayIfSingleItem(output[_sAS][_i]), context); } - if (output.destinationAddressSet === "") { + if (String(output.destinationAddressSet).trim() === "") { contents[_DAes] = []; } else if (output[_dAS] != null && output[_dAS][_i] != null) { contents[_DAes] = de_ValueStringList(__getArrayIfSingleItem(output[_dAS][_i]), context); } - if (output.sourcePortSet === "") { + if (String(output.sourcePortSet).trim() === "") { contents[_SPo] = []; } else if (output[_sPS] != null && output[_sPS][_i] != null) { contents[_SPo] = de_ValueStringList(__getArrayIfSingleItem(output[_sPS][_i]), context); } - if (output.destinationPortSet === "") { + if (String(output.destinationPortSet).trim() === "") { contents[_DPes] = []; } else if (output[_dPS] != null && output[_dPS][_i] != null) { contents[_DPes] = de_ValueStringList(__getArrayIfSingleItem(output[_dPS][_i]), context); } - if (output.sourcePrefixListSet === "") { + if (String(output.sourcePrefixListSet).trim() === "") { contents[_SPL] = []; } else if (output[_sPLS] != null && output[_sPLS][_i] != null) { contents[_SPL] = de_ValueStringList(__getArrayIfSingleItem(output[_sPLS][_i]), context); } - if (output.destinationPrefixListSet === "") { + if (String(output.destinationPrefixListSet).trim() === "") { contents[_DPLe] = []; } else if (output[_dPLS] != null && output[_dPLS][_i] != null) { contents[_DPLe] = de_ValueStringList(__getArrayIfSingleItem(output[_dPLS][_i]), context); } - if (output.protocolSet === "") { + if (String(output.protocolSet).trim() === "") { contents[_Pro] = []; } else if (output[_pSro] != null && output[_pSro][_i] != null) { contents[_Pro] = de_ProtocolList(__getArrayIfSingleItem(output[_pSro][_i]), context); @@ -82764,7 +82764,7 @@ const de_PathComponent = (output: any, context: __SerdeContext): PathComponent = if (output[_vp] != null) { contents[_Vp] = de_AnalysisComponent(output[_vp], context); } - if (output.additionalDetailSet === "") { + if (String(output.additionalDetailSet).trim() === "") { contents[_ADd] = []; } else if (output[_aDS] != null && output[_aDS][_i] != null) { contents[_ADd] = de_AdditionalDetailList(__getArrayIfSingleItem(output[_aDS][_i]), context); @@ -82775,7 +82775,7 @@ const de_PathComponent = (output: any, context: __SerdeContext): PathComponent = if (output[_tGRTR] != null) { contents[_TGRTR] = de_TransitGatewayRouteTableRoute(output[_tGRTR], context); } - if (output.explanationSet === "") { + if (String(output.explanationSet).trim() === "") { contents[_Ex] = []; } else if (output[_eSx] != null && output[_eSx][_i] != null) { contents[_Ex] = de_ExplanationList(__getArrayIfSingleItem(output[_eSx][_i]), context); @@ -83147,7 +83147,7 @@ const de_PlacementGroup = (output: any, context: __SerdeContext): PlacementGroup if (output[_gIr] != null) { contents[_GIr] = __expectString(output[_gIr]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -83166,7 +83166,7 @@ const de_PlacementGroup = (output: any, context: __SerdeContext): PlacementGroup */ const de_PlacementGroupInfo = (output: any, context: __SerdeContext): PlacementGroupInfo => { const contents: any = {}; - if (output.supportedStrategies === "") { + if (String(output.supportedStrategies).trim() === "") { contents[_SSu] = []; } else if (output[_sSup] != null && output[_sSup][_i] != null) { contents[_SSu] = de_PlacementGroupStrategyList(__getArrayIfSingleItem(output[_sSup][_i]), context); @@ -83259,7 +83259,7 @@ const de_PortRangeList = (output: any, context: __SerdeContext): PortRange[] => */ const de_PrefixList = (output: any, context: __SerdeContext): PrefixList => { const contents: any = {}; - if (output.cidrSet === "") { + if (String(output.cidrSet).trim() === "") { contents[_Ci] = []; } else if (output[_cS] != null && output[_cS][_i] != null) { contents[_Ci] = de_ValueStringList(__getArrayIfSingleItem(output[_cS][_i]), context); @@ -83434,7 +83434,7 @@ const de_PrincipalIdFormat = (output: any, context: __SerdeContext): PrincipalId if (output[_ar] != null) { contents[_Ar] = __expectString(output[_ar]); } - if (output.statusSet === "") { + if (String(output.statusSet).trim() === "") { contents[_Status] = []; } else if (output[_sSt] != null && output[_sSt][_i] != null) { contents[_Status] = de_IdFormatList(__getArrayIfSingleItem(output[_sSt][_i]), context); @@ -83562,7 +83562,7 @@ const de_PrivateIpAddressSpecificationList = ( */ const de_ProcessorInfo = (output: any, context: __SerdeContext): ProcessorInfo => { const contents: any = {}; - if (output.supportedArchitectures === "") { + if (String(output.supportedArchitectures).trim() === "") { contents[_SAup] = []; } else if (output[_sAu] != null && output[_sAu][_i] != null) { contents[_SAup] = de_ArchitectureTypeList(__getArrayIfSingleItem(output[_sAu][_i]), context); @@ -83570,7 +83570,7 @@ const de_ProcessorInfo = (output: any, context: __SerdeContext): ProcessorInfo = if (output[_sCSIG] != null) { contents[_SCSIG] = __strictParseFloat(output[_sCSIG]) as number; } - if (output.supportedFeatures === "") { + if (String(output.supportedFeatures).trim() === "") { contents[_SF] = []; } else if (output[_sF] != null && output[_sF][_i] != null) { contents[_SF] = de_SupportedAdditionalProcessorFeatureList(__getArrayIfSingleItem(output[_sF][_i]), context); @@ -83771,7 +83771,7 @@ const de_PublicIpv4Pool = (output: any, context: __SerdeContext): PublicIpv4Pool if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.poolAddressRangeSet === "") { + if (String(output.poolAddressRangeSet).trim() === "") { contents[_PARo] = []; } else if (output[_pARS] != null && output[_pARS][_i] != null) { contents[_PARo] = de_PublicIpv4PoolRangeSet(__getArrayIfSingleItem(output[_pARS][_i]), context); @@ -83785,7 +83785,7 @@ const de_PublicIpv4Pool = (output: any, context: __SerdeContext): PublicIpv4Pool if (output[_nBG] != null) { contents[_NBG] = __expectString(output[_nBG]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -83846,7 +83846,7 @@ const de_Purchase = (output: any, context: __SerdeContext): Purchase => { if (output[_du] != null) { contents[_Du] = __strictParseInt32(output[_du]) as number; } - if (output.hostIdSet === "") { + if (String(output.hostIdSet).trim() === "") { contents[_HIS] = []; } else if (output[_hIS] != null && output[_hIS][_i] != null) { contents[_HIS] = de_ResponseHostIdSet(__getArrayIfSingleItem(output[_hIS][_i]), context); @@ -83877,7 +83877,7 @@ const de_PurchaseCapacityBlockExtensionResult = ( context: __SerdeContext ): PurchaseCapacityBlockExtensionResult => { const contents: any = {}; - if (output.capacityBlockExtensionSet === "") { + if (String(output.capacityBlockExtensionSet).trim() === "") { contents[_CBE] = []; } else if (output[_cBESa] != null && output[_cBESa][_i] != null) { contents[_CBE] = de_CapacityBlockExtensionSet(__getArrayIfSingleItem(output[_cBESa][_i]), context); @@ -83893,7 +83893,7 @@ const de_PurchaseCapacityBlockResult = (output: any, context: __SerdeContext): P if (output[_cR] != null) { contents[_CRapa] = de_CapacityReservation(output[_cR], context); } - if (output.capacityBlockSet === "") { + if (String(output.capacityBlockSet).trim() === "") { contents[_CBa] = []; } else if (output[_cBS] != null && output[_cBS][_i] != null) { contents[_CBa] = de_CapacityBlockSet(__getArrayIfSingleItem(output[_cBS][_i]), context); @@ -83923,7 +83923,7 @@ const de_PurchaseHostReservationResult = (output: any, context: __SerdeContext): if (output[_cC] != null) { contents[_CCu] = __expectString(output[_cC]); } - if (output.purchase === "") { + if (String(output.purchase).trim() === "") { contents[_Pur] = []; } else if (output[_pur] != null && output[_pur][_i] != null) { contents[_Pur] = de_PurchaseSet(__getArrayIfSingleItem(output[_pur][_i]), context); @@ -83959,7 +83959,7 @@ const de_PurchaseScheduledInstancesResult = ( context: __SerdeContext ): PurchaseScheduledInstancesResult => { const contents: any = {}; - if (output.scheduledInstanceSet === "") { + if (String(output.scheduledInstanceSet).trim() === "") { contents[_SIS] = []; } else if (output[_sIS] != null && output[_sIS][_i] != null) { contents[_SIS] = de_PurchasedScheduledInstanceSet(__getArrayIfSingleItem(output[_sIS][_i]), context); @@ -84199,7 +84199,7 @@ const de_RejectVpcEndpointConnectionsResult = ( context: __SerdeContext ): RejectVpcEndpointConnectionsResult => { const contents: any = {}; - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemSet(__getArrayIfSingleItem(output[_u][_i]), context); @@ -84226,12 +84226,12 @@ const de_RejectVpcPeeringConnectionResult = ( */ const de_ReleaseHostsResult = (output: any, context: __SerdeContext): ReleaseHostsResult => { const contents: any = {}; - if (output.successful === "") { + if (String(output.successful).trim() === "") { contents[_Suc] = []; } else if (output[_suc] != null && output[_suc][_i] != null) { contents[_Suc] = de_ResponseHostIdList(__getArrayIfSingleItem(output[_suc][_i]), context); } - if (output.unsuccessful === "") { + if (String(output.unsuccessful).trim() === "") { contents[_Un] = []; } else if (output[_u] != null && output[_u][_i] != null) { contents[_Un] = de_UnsuccessfulItemList(__getArrayIfSingleItem(output[_u][_i]), context); @@ -84312,7 +84312,7 @@ const de_ReplaceRootVolumeTask = (output: any, context: __SerdeContext): Replace if (output[_cTom] != null) { contents[_CTom] = __expectString(output[_cTom]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -84398,7 +84398,7 @@ const de_RequestSpotFleetResponse = (output: any, context: __SerdeContext): Requ */ const de_RequestSpotInstancesResult = (output: any, context: __SerdeContext): RequestSpotInstancesResult => { const contents: any = {}; - if (output.spotInstanceRequestSet === "") { + if (String(output.spotInstanceRequestSet).trim() === "") { contents[_SIR] = []; } else if (output[_sIRS] != null && output[_sIRS][_i] != null) { contents[_SIR] = de_SpotInstanceRequestList(__getArrayIfSingleItem(output[_sIRS][_i]), context); @@ -84420,12 +84420,12 @@ const de_Reservation = (output: any, context: __SerdeContext): Reservation => { if (output[_rIeq] != null) { contents[_RIeq] = __expectString(output[_rIeq]); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); } - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_In] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_In] = de_InstanceList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -84509,7 +84509,7 @@ const de_ReservedInstances = (output: any, context: __SerdeContext): ReservedIns if (output[_oTf] != null) { contents[_OT] = __expectString(output[_oTf]); } - if (output.recurringCharges === "") { + if (String(output.recurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_rCec] != null && output[_rCec][_i] != null) { contents[_RCec] = de_RecurringChargesList(__getArrayIfSingleItem(output[_rCec][_i]), context); @@ -84517,7 +84517,7 @@ const de_ReservedInstances = (output: any, context: __SerdeContext): ReservedIns if (output[_sc] != null) { contents[_Sc] = __expectString(output[_sc]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -84620,12 +84620,12 @@ const de_ReservedInstancesListing = (output: any, context: __SerdeContext): Rese if (output[_cD] != null) { contents[_CDr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cD])); } - if (output.instanceCounts === "") { + if (String(output.instanceCounts).trim() === "") { contents[_ICn] = []; } else if (output[_iCn] != null && output[_iCn][_i] != null) { contents[_ICn] = de_InstanceCountList(__getArrayIfSingleItem(output[_iCn][_i]), context); } - if (output.priceSchedules === "") { + if (String(output.priceSchedules).trim() === "") { contents[_PS] = []; } else if (output[_pSric] != null && output[_pSric][_i] != null) { contents[_PS] = de_PriceScheduleList(__getArrayIfSingleItem(output[_pSric][_i]), context); @@ -84642,7 +84642,7 @@ const de_ReservedInstancesListing = (output: any, context: __SerdeContext): Rese if (output[_sMt] != null) { contents[_SMt] = __expectString(output[_sMt]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -84678,12 +84678,12 @@ const de_ReservedInstancesModification = (output: any, context: __SerdeContext): if (output[_eDf] != null) { contents[_EDf] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_eDf])); } - if (output.modificationResultSet === "") { + if (String(output.modificationResultSet).trim() === "") { contents[_MRo] = []; } else if (output[_mRS] != null && output[_mRS][_i] != null) { contents[_MRo] = de_ReservedInstancesModificationResultList(__getArrayIfSingleItem(output[_mRS][_i]), context); } - if (output.reservedInstancesSet === "") { + if (String(output.reservedInstancesSet).trim() === "") { contents[_RIIes] = []; } else if (output[_rIS] != null && output[_rIS][_i] != null) { contents[_RIIes] = de_ReservedIntancesIds(__getArrayIfSingleItem(output[_rIS][_i]), context); @@ -84768,12 +84768,12 @@ const de_ReservedInstancesOffering = (output: any, context: __SerdeContext): Res if (output[_oTf] != null) { contents[_OT] = __expectString(output[_oTf]); } - if (output.pricingDetailsSet === "") { + if (String(output.pricingDetailsSet).trim() === "") { contents[_PDri] = []; } else if (output[_pDS] != null && output[_pDS][_i] != null) { contents[_PDri] = de_PricingDetailsList(__getArrayIfSingleItem(output[_pDS][_i]), context); } - if (output.recurringCharges === "") { + if (String(output.recurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_rCec] != null && output[_rCec][_i] != null) { contents[_RCec] = de_RecurringChargesList(__getArrayIfSingleItem(output[_rCec][_i]), context); @@ -84868,12 +84868,12 @@ const de_ResetFpgaImageAttributeResult = (output: any, context: __SerdeContext): */ const de_ResourceStatement = (output: any, context: __SerdeContext): ResourceStatement => { const contents: any = {}; - if (output.resourceSet === "") { + if (String(output.resourceSet).trim() === "") { contents[_Re] = []; } else if (output[_rSesou] != null && output[_rSesou][_i] != null) { contents[_Re] = de_ValueStringList(__getArrayIfSingleItem(output[_rSesou][_i]), context); } - if (output.resourceTypeSet === "") { + if (String(output.resourceTypeSet).trim() === "") { contents[_RTe] = []; } else if (output[_rTSe] != null && output[_rTSe][_i] != null) { contents[_RTe] = de_ValueStringList(__getArrayIfSingleItem(output[_rTSe][_i]), context); @@ -84931,12 +84931,12 @@ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): Re if (output[_iIP] != null) { contents[_IIP] = de_LaunchTemplateIamInstanceProfileSpecification(output[_iIP], context); } - if (output.blockDeviceMappingSet === "") { + if (String(output.blockDeviceMappingSet).trim() === "") { contents[_BDM] = []; } else if (output[_bDMS] != null && output[_bDMS][_i] != null) { contents[_BDM] = de_LaunchTemplateBlockDeviceMappingList(__getArrayIfSingleItem(output[_bDMS][_i]), context); } - if (output.networkInterfaceSet === "") { + if (String(output.networkInterfaceSet).trim() === "") { contents[_NI] = []; } else if (output[_nIS] != null && output[_nIS][_i] != null) { contents[_NI] = de_LaunchTemplateInstanceNetworkInterfaceSpecificationList( @@ -84971,17 +84971,17 @@ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): Re if (output[_uDs] != null) { contents[_UD] = __expectString(output[_uDs]); } - if (output.tagSpecificationSet === "") { + if (String(output.tagSpecificationSet).trim() === "") { contents[_TS] = []; } else if (output[_tSS] != null && output[_tSS][_i] != null) { contents[_TS] = de_LaunchTemplateTagSpecificationList(__getArrayIfSingleItem(output[_tSS][_i]), context); } - if (output.elasticGpuSpecificationSet === "") { + if (String(output.elasticGpuSpecificationSet).trim() === "") { contents[_EGS] = []; } else if (output[_eGSS] != null && output[_eGSS][_i] != null) { contents[_EGS] = de_ElasticGpuSpecificationResponseList(__getArrayIfSingleItem(output[_eGSS][_i]), context); } - if (output.elasticInferenceAcceleratorSet === "") { + if (String(output.elasticInferenceAcceleratorSet).trim() === "") { contents[_EIA] = []; } else if (output[_eIAS] != null && output[_eIAS][_i] != null) { contents[_EIA] = de_LaunchTemplateElasticInferenceAcceleratorResponseList( @@ -84989,12 +84989,12 @@ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): Re context ); } - if (output.securityGroupIdSet === "") { + if (String(output.securityGroupIdSet).trim() === "") { contents[_SGI] = []; } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { contents[_SGI] = de_ValueStringList(__getArrayIfSingleItem(output[_sGIS][_i]), context); } - if (output.securityGroupSet === "") { + if (String(output.securityGroupSet).trim() === "") { contents[_SG] = []; } else if (output[_sGS] != null && output[_sGS][_i] != null) { contents[_SG] = de_ValueStringList(__getArrayIfSingleItem(output[_sGS][_i]), context); @@ -85011,7 +85011,7 @@ const de_ResponseLaunchTemplateData = (output: any, context: __SerdeContext): Re if (output[_cRSa] != null) { contents[_CRSa] = de_LaunchTemplateCapacityReservationSpecificationResponse(output[_cRSa], context); } - if (output.licenseSet === "") { + if (String(output.licenseSet).trim() === "") { contents[_LSi] = []; } else if (output[_lSi] != null && output[_lSi][_i] != null) { contents[_LSi] = de_LaunchTemplateLicenseList(__getArrayIfSingleItem(output[_lSi][_i]), context); @@ -85223,12 +85223,12 @@ const de_RevokeSecurityGroupEgressResult = (output: any, context: __SerdeContext if (output[_r] != null) { contents[_Ret] = __parseBoolean(output[_r]); } - if (output.unknownIpPermissionSet === "") { + if (String(output.unknownIpPermissionSet).trim() === "") { contents[_UIP] = []; } else if (output[_uIPS] != null && output[_uIPS][_i] != null) { contents[_UIP] = de_IpPermissionList(__getArrayIfSingleItem(output[_uIPS][_i]), context); } - if (output.revokedSecurityGroupRuleSet === "") { + if (String(output.revokedSecurityGroupRuleSet).trim() === "") { contents[_RSGR] = []; } else if (output[_rSGRS] != null && output[_rSGRS][_i] != null) { contents[_RSGR] = de_RevokedSecurityGroupRuleList(__getArrayIfSingleItem(output[_rSGRS][_i]), context); @@ -85247,12 +85247,12 @@ const de_RevokeSecurityGroupIngressResult = ( if (output[_r] != null) { contents[_Ret] = __parseBoolean(output[_r]); } - if (output.unknownIpPermissionSet === "") { + if (String(output.unknownIpPermissionSet).trim() === "") { contents[_UIP] = []; } else if (output[_uIPS] != null && output[_uIPS][_i] != null) { contents[_UIP] = de_IpPermissionList(__getArrayIfSingleItem(output[_uIPS][_i]), context); } - if (output.revokedSecurityGroupRuleSet === "") { + if (String(output.revokedSecurityGroupRuleSet).trim() === "") { contents[_RSGR] = []; } else if (output[_rSGRS] != null && output[_rSGRS][_i] != null) { contents[_RSGR] = de_RevokedSecurityGroupRuleList(__getArrayIfSingleItem(output[_rSGRS][_i]), context); @@ -85358,7 +85358,7 @@ const de_RouteServer = (output: any, context: __SerdeContext): RouteServer => { if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -85471,7 +85471,7 @@ const de_RouteServerEndpoint = (output: any, context: __SerdeContext): RouteServ if (output[_fR] != null) { contents[_FR] = __expectString(output[_fR]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -85534,7 +85534,7 @@ const de_RouteServerPeer = (output: any, context: __SerdeContext): RouteServerPe if (output[_bSf] != null) { contents[_BSf] = de_RouteServerBfdStatus(output[_bSf], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -85592,7 +85592,7 @@ const de_RouteServerRoute = (output: any, context: __SerdeContext): RouteServerR if (output[_rSPI] != null) { contents[_RSPI] = __expectString(output[_rSPI]); } - if (output.routeInstallationDetailSet === "") { + if (String(output.routeInstallationDetailSet).trim() === "") { contents[_RID] = []; } else if (output[_rIDS] != null && output[_rIDS][_i] != null) { contents[_RID] = de_RouteServerRouteInstallationDetails(__getArrayIfSingleItem(output[_rIDS][_i]), context); @@ -85603,7 +85603,7 @@ const de_RouteServerRoute = (output: any, context: __SerdeContext): RouteServerR if (output[_pre] != null) { contents[_Pr] = __expectString(output[_pre]); } - if (output.asPathSet === "") { + if (String(output.asPathSet).trim() === "") { contents[_APs] = []; } else if (output[_aPSs] != null && output[_aPSs][_i] != null) { contents[_APs] = de_AsPath(__getArrayIfSingleItem(output[_aPSs][_i]), context); @@ -85678,12 +85678,12 @@ const de_RouteServersList = (output: any, context: __SerdeContext): RouteServer[ */ const de_RouteTable = (output: any, context: __SerdeContext): RouteTable => { const contents: any = {}; - if (output.associationSet === "") { + if (String(output.associationSet).trim() === "") { contents[_Ass] = []; } else if (output[_aSss] != null && output[_aSss][_i] != null) { contents[_Ass] = de_RouteTableAssociationList(__getArrayIfSingleItem(output[_aSss][_i]), context); } - if (output.propagatingVgwSet === "") { + if (String(output.propagatingVgwSet).trim() === "") { contents[_PVr] = []; } else if (output[_pVS] != null && output[_pVS][_i] != null) { contents[_PVr] = de_PropagatingVgwList(__getArrayIfSingleItem(output[_pVS][_i]), context); @@ -85691,12 +85691,12 @@ const de_RouteTable = (output: any, context: __SerdeContext): RouteTable => { if (output[_rTI] != null) { contents[_RTI] = __expectString(output[_rTI]); } - if (output.routeSet === "") { + if (String(output.routeSet).trim() === "") { contents[_Rout] = []; } else if (output[_rSou] != null && output[_rSou][_i] != null) { contents[_Rout] = de_RouteList(__getArrayIfSingleItem(output[_rSou][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -85783,7 +85783,7 @@ const de_RuleGroupRuleOptionsPair = (output: any, context: __SerdeContext): Rule if (output[_rGA] != null) { contents[_RGA] = __expectString(output[_rGA]); } - if (output.ruleOptionSet === "") { + if (String(output.ruleOptionSet).trim() === "") { contents[_ROu] = []; } else if (output[_rOS] != null && output[_rOS][_i] != null) { contents[_ROu] = de_RuleOptionList(__getArrayIfSingleItem(output[_rOS][_i]), context); @@ -85835,7 +85835,7 @@ const de_RuleOption = (output: any, context: __SerdeContext): RuleOption => { if (output[_key] != null) { contents[_Key] = __expectString(output[_key]); } - if (output.settingSet === "") { + if (String(output.settingSet).trim() === "") { contents[_Set] = []; } else if (output[_sSe] != null && output[_sSe][_i] != null) { contents[_Set] = de_StringList(__getArrayIfSingleItem(output[_sSe][_i]), context); @@ -85870,7 +85870,7 @@ const de_RunInstancesMonitoringEnabled = (output: any, context: __SerdeContext): */ const de_RunScheduledInstancesResult = (output: any, context: __SerdeContext): RunScheduledInstancesResult => { const contents: any = {}; - if (output.instanceIdSet === "") { + if (String(output.instanceIdSet).trim() === "") { contents[_IIS] = []; } else if (output[_iIS] != null && output[_iIS][_i] != null) { contents[_IIS] = de_InstanceIdSet(__getArrayIfSingleItem(output[_iIS][_i]), context); @@ -86023,7 +86023,7 @@ const de_ScheduledInstanceRecurrence = (output: any, context: __SerdeContext): S if (output[_int] != null) { contents[_Int] = __strictParseInt32(output[_int]) as number; } - if (output.occurrenceDaySet === "") { + if (String(output.occurrenceDaySet).trim() === "") { contents[_ODS] = []; } else if (output[_oDS] != null && output[_oDS][_i] != null) { contents[_ODS] = de_OccurrenceDaySet(__getArrayIfSingleItem(output[_oDS][_i]), context); @@ -86053,7 +86053,7 @@ const de_ScheduledInstanceSet = (output: any, context: __SerdeContext): Schedule */ const de_SearchLocalGatewayRoutesResult = (output: any, context: __SerdeContext): SearchLocalGatewayRoutesResult => { const contents: any = {}; - if (output.routeSet === "") { + if (String(output.routeSet).trim() === "") { contents[_Rout] = []; } else if (output[_rSou] != null && output[_rSou][_i] != null) { contents[_Rout] = de_LocalGatewayRouteList(__getArrayIfSingleItem(output[_rSou][_i]), context); @@ -86072,7 +86072,7 @@ const de_SearchTransitGatewayMulticastGroupsResult = ( context: __SerdeContext ): SearchTransitGatewayMulticastGroupsResult => { const contents: any = {}; - if (output.multicastGroups === "") { + if (String(output.multicastGroups).trim() === "") { contents[_MG] = []; } else if (output[_mG] != null && output[_mG][_i] != null) { contents[_MG] = de_TransitGatewayMulticastGroupList(__getArrayIfSingleItem(output[_mG][_i]), context); @@ -86091,7 +86091,7 @@ const de_SearchTransitGatewayRoutesResult = ( context: __SerdeContext ): SearchTransitGatewayRoutesResult => { const contents: any = {}; - if (output.routeSet === "") { + if (String(output.routeSet).trim() === "") { contents[_Rout] = []; } else if (output[_rSou] != null && output[_rSou][_i] != null) { contents[_Rout] = de_TransitGatewayRouteList(__getArrayIfSingleItem(output[_rSou][_i]), context); @@ -86110,12 +86110,12 @@ const de_SecurityGroup = (output: any, context: __SerdeContext): SecurityGroup = if (output[_gIr] != null) { contents[_GIr] = __expectString(output[_gIr]); } - if (output.ipPermissionsEgress === "") { + if (String(output.ipPermissionsEgress).trim() === "") { contents[_IPE] = []; } else if (output[_iPE] != null && output[_iPE][_i] != null) { contents[_IPE] = de_IpPermissionList(__getArrayIfSingleItem(output[_iPE][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86135,7 +86135,7 @@ const de_SecurityGroup = (output: any, context: __SerdeContext): SecurityGroup = if (output[_gD] != null) { contents[_De] = __expectString(output[_gD]); } - if (output.ipPermissions === "") { + if (String(output.ipPermissions).trim() === "") { contents[_IPpe] = []; } else if (output[_iPpe] != null && output[_iPpe][_i] != null) { contents[_IPpe] = de_IpPermissionList(__getArrayIfSingleItem(output[_iPpe][_i]), context); @@ -86160,7 +86160,7 @@ const de_SecurityGroupForVpc = (output: any, context: __SerdeContext): SecurityG if (output[_gIr] != null) { contents[_GIr] = __expectString(output[_gIr]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86312,7 +86312,7 @@ const de_SecurityGroupRule = (output: any, context: __SerdeContext): SecurityGro if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86376,7 +86376,7 @@ const de_SecurityGroupVpcAssociationList = (output: any, context: __SerdeContext */ const de_ServiceConfiguration = (output: any, context: __SerdeContext): ServiceConfiguration => { const contents: any = {}; - if (output.serviceType === "") { + if (String(output.serviceType).trim() === "") { contents[_STe] = []; } else if (output[_sTe] != null && output[_sTe][_i] != null) { contents[_STe] = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output[_sTe][_i]), context); @@ -86390,12 +86390,12 @@ const de_ServiceConfiguration = (output: any, context: __SerdeContext): ServiceC if (output[_sSer] != null) { contents[_SSe] = __expectString(output[_sSer]); } - if (output.availabilityZoneIdSet === "") { + if (String(output.availabilityZoneIdSet).trim() === "") { contents[_AZIv] = []; } else if (output[_aZIS] != null && output[_aZIS][_i] != null) { contents[_AZIv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZIS][_i]), context); } - if (output.availabilityZoneSet === "") { + if (String(output.availabilityZoneSet).trim() === "") { contents[_AZv] = []; } else if (output[_aZS] != null && output[_aZS][_i] != null) { contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); @@ -86406,22 +86406,22 @@ const de_ServiceConfiguration = (output: any, context: __SerdeContext): ServiceC if (output[_mVE] != null) { contents[_MVEa] = __parseBoolean(output[_mVE]); } - if (output.networkLoadBalancerArnSet === "") { + if (String(output.networkLoadBalancerArnSet).trim() === "") { contents[_NLBAe] = []; } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) { contents[_NLBAe] = de_ValueStringList(__getArrayIfSingleItem(output[_nLBAS][_i]), context); } - if (output.gatewayLoadBalancerArnSet === "") { + if (String(output.gatewayLoadBalancerArnSet).trim() === "") { contents[_GLBA] = []; } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) { contents[_GLBA] = de_ValueStringList(__getArrayIfSingleItem(output[_gLBAS][_i]), context); } - if (output.supportedIpAddressTypeSet === "") { + if (String(output.supportedIpAddressTypeSet).trim() === "") { contents[_SIAT] = []; } else if (output[_sIATS] != null && output[_sIATS][_i] != null) { contents[_SIAT] = de_SupportedIpAddressTypes(__getArrayIfSingleItem(output[_sIATS][_i]), context); } - if (output.baseEndpointDnsNameSet === "") { + if (String(output.baseEndpointDnsNameSet).trim() === "") { contents[_BEDN] = []; } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) { contents[_BEDN] = de_ValueStringList(__getArrayIfSingleItem(output[_bEDNS][_i]), context); @@ -86435,12 +86435,12 @@ const de_ServiceConfiguration = (output: any, context: __SerdeContext): ServiceC if (output[_pRa] != null) { contents[_PRa] = __expectString(output[_pRa]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.supportedRegionSet === "") { + if (String(output.supportedRegionSet).trim() === "") { contents[_SRu] = []; } else if (output[_sRS] != null && output[_sRS][_i] != null) { contents[_SRu] = de_SupportedRegionSet(__getArrayIfSingleItem(output[_sRS][_i]), context); @@ -86473,7 +86473,7 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_sI] != null) { contents[_SIe] = __expectString(output[_sI]); } - if (output.serviceType === "") { + if (String(output.serviceType).trim() === "") { contents[_STe] = []; } else if (output[_sTe] != null && output[_sTe][_i] != null) { contents[_STe] = de_ServiceTypeDetailSet(__getArrayIfSingleItem(output[_sTe][_i]), context); @@ -86481,12 +86481,12 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_sR] != null) { contents[_SRe] = __expectString(output[_sR]); } - if (output.availabilityZoneIdSet === "") { + if (String(output.availabilityZoneIdSet).trim() === "") { contents[_AZIv] = []; } else if (output[_aZIS] != null && output[_aZIS][_i] != null) { contents[_AZIv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZIS][_i]), context); } - if (output.availabilityZoneSet === "") { + if (String(output.availabilityZoneSet).trim() === "") { contents[_AZv] = []; } else if (output[_aZS] != null && output[_aZS][_i] != null) { contents[_AZv] = de_ValueStringList(__getArrayIfSingleItem(output[_aZS][_i]), context); @@ -86494,7 +86494,7 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_ow] != null) { contents[_Own] = __expectString(output[_ow]); } - if (output.baseEndpointDnsNameSet === "") { + if (String(output.baseEndpointDnsNameSet).trim() === "") { contents[_BEDN] = []; } else if (output[_bEDNS] != null && output[_bEDNS][_i] != null) { contents[_BEDN] = de_ValueStringList(__getArrayIfSingleItem(output[_bEDNS][_i]), context); @@ -86502,7 +86502,7 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_pDNr] != null) { contents[_PDN] = __expectString(output[_pDNr]); } - if (output.privateDnsNameSet === "") { + if (String(output.privateDnsNameSet).trim() === "") { contents[_PDNr] = []; } else if (output[_pDNS] != null && output[_pDNS][_i] != null) { contents[_PDNr] = de_PrivateDnsDetailsSet(__getArrayIfSingleItem(output[_pDNS][_i]), context); @@ -86519,7 +86519,7 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_pRa] != null) { contents[_PRa] = __expectString(output[_pRa]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86527,7 +86527,7 @@ const de_ServiceDetail = (output: any, context: __SerdeContext): ServiceDetail = if (output[_pDNVS] != null) { contents[_PDNVS] = __expectString(output[_pDNVS]); } - if (output.supportedIpAddressTypeSet === "") { + if (String(output.supportedIpAddressTypeSet).trim() === "") { contents[_SIAT] = []; } else if (output[_sIATS] != null && output[_sIATS][_i] != null) { contents[_SIAT] = de_SupportedIpAddressTypes(__getArrayIfSingleItem(output[_sIATS][_i]), context); @@ -86581,7 +86581,7 @@ const de_ServiceLinkVirtualInterface = (output: any, context: __SerdeContext): S if (output[_oLI] != null) { contents[_OLI] = __expectString(output[_oLI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86647,7 +86647,7 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { if (output[_oA] != null) { contents[_OA] = __expectString(output[_oA]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86772,7 +86772,7 @@ const de_SnapshotInfo = (output: any, context: __SerdeContext): SnapshotInfo => if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -86927,7 +86927,7 @@ const de_SnapshotTierStatus = (output: any, context: __SerdeContext): SnapshotTi if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -87012,7 +87012,7 @@ const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): if (output[_aTdd] != null) { contents[_ATd] = __expectString(output[_aTdd]); } - if (output.blockDeviceMapping === "") { + if (String(output.blockDeviceMapping).trim() === "") { contents[_BDM] = []; } else if (output[_bDM] != null && output[_bDM][_i] != null) { contents[_BDM] = de_BlockDeviceMappingList(__getArrayIfSingleItem(output[_bDM][_i]), context); @@ -87038,7 +87038,7 @@ const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): if (output[_mo] != null) { contents[_Mon] = de_SpotFleetMonitoring(output[_mo], context); } - if (output.networkInterfaceSet === "") { + if (String(output.networkInterfaceSet).trim() === "") { contents[_NI] = []; } else if (output[_nIS] != null && output[_nIS][_i] != null) { contents[_NI] = de_InstanceNetworkInterfaceSpecificationList(__getArrayIfSingleItem(output[_nIS][_i]), context); @@ -87061,7 +87061,7 @@ const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): if (output[_wC] != null) { contents[_WCe] = __strictParseFloat(output[_wC]) as number; } - if (output.tagSpecificationSet === "") { + if (String(output.tagSpecificationSet).trim() === "") { contents[_TS] = []; } else if (output[_tSS] != null && output[_tSS][_i] != null) { contents[_TS] = de_SpotFleetTagSpecificationList(__getArrayIfSingleItem(output[_tSS][_i]), context); @@ -87069,7 +87069,7 @@ const de_SpotFleetLaunchSpecification = (output: any, context: __SerdeContext): if (output[_iR] != null) { contents[_IR] = de_InstanceRequirements(output[_iR], context); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_SG] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_SG] = de_GroupIdentifierList(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -87108,7 +87108,7 @@ const de_SpotFleetRequestConfig = (output: any, context: __SerdeContext): SpotFl if (output[_sFRSp] != null) { contents[_SFRS] = __expectString(output[_sFRSp]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -87145,12 +87145,12 @@ const de_SpotFleetRequestConfigData = (output: any, context: __SerdeContext): Sp if (output[_iFR] != null) { contents[_IFR] = __expectString(output[_iFR]); } - if (output.launchSpecifications === "") { + if (String(output.launchSpecifications).trim() === "") { contents[_LSau] = []; } else if (output[_lSa] != null && output[_lSa][_i] != null) { contents[_LSau] = de_LaunchSpecsList(__getArrayIfSingleItem(output[_lSa][_i]), context); } - if (output.launchTemplateConfigs === "") { + if (String(output.launchTemplateConfigs).trim() === "") { contents[_LTC] = []; } else if (output[_lTC] != null && output[_lTC][_i] != null) { contents[_LTC] = de_LaunchTemplateConfigList(__getArrayIfSingleItem(output[_lTC][_i]), context); @@ -87200,7 +87200,7 @@ const de_SpotFleetRequestConfigData = (output: any, context: __SerdeContext): Sp if (output[_tCUT] != null) { contents[_TCUT] = __expectString(output[_tCUT]); } - if (output.TagSpecification === "") { + if (String(output.TagSpecification).trim() === "") { contents[_TS] = []; } else if (output[_TSagp] != null && output[_TSagp][_i] != null) { contents[_TS] = de_TagSpecificationList(__getArrayIfSingleItem(output[_TSagp][_i]), context); @@ -87227,7 +87227,7 @@ const de_SpotFleetTagSpecification = (output: any, context: __SerdeContext): Spo if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.tag === "") { + if (String(output.tag).trim() === "") { contents[_Ta] = []; } else if (output[_tag] != null && output[_tag][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tag][_i]), context); @@ -87296,7 +87296,7 @@ const de_SpotInstanceRequest = (output: any, context: __SerdeContext): SpotInsta if (output[_sta] != null) { contents[_Statu] = de_SpotInstanceStatus(output[_sta], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -87494,12 +87494,12 @@ const de_StaleIpPermission = (output: any, context: __SerdeContext): StaleIpPerm if (output[_iPpr] != null) { contents[_IPpr] = __expectString(output[_iPpr]); } - if (output.ipRanges === "") { + if (String(output.ipRanges).trim() === "") { contents[_IRp] = []; } else if (output[_iRpa] != null && output[_iRpa][_i] != null) { contents[_IRp] = de_IpRanges(__getArrayIfSingleItem(output[_iRpa][_i]), context); } - if (output.prefixListIds === "") { + if (String(output.prefixListIds).trim() === "") { contents[_PLIr] = []; } else if (output[_pLIr] != null && output[_pLIr][_i] != null) { contents[_PLIr] = de_PrefixListIdSet(__getArrayIfSingleItem(output[_pLIr][_i]), context); @@ -87507,7 +87507,7 @@ const de_StaleIpPermission = (output: any, context: __SerdeContext): StaleIpPerm if (output[_tPo] != null) { contents[_TP] = __strictParseInt32(output[_tPo]) as number; } - if (output.groups === "") { + if (String(output.groups).trim() === "") { contents[_UIGP] = []; } else if (output[_gr] != null && output[_gr][_i] != null) { contents[_UIGP] = de_UserIdGroupPairSet(__getArrayIfSingleItem(output[_gr][_i]), context); @@ -87540,12 +87540,12 @@ const de_StaleSecurityGroup = (output: any, context: __SerdeContext): StaleSecur if (output[_gN] != null) { contents[_GN] = __expectString(output[_gN]); } - if (output.staleIpPermissions === "") { + if (String(output.staleIpPermissions).trim() === "") { contents[_SIP] = []; } else if (output[_sIP] != null && output[_sIP][_i] != null) { contents[_SIP] = de_StaleIpPermissionSet(__getArrayIfSingleItem(output[_sIP][_i]), context); } - if (output.staleIpPermissionsEgress === "") { + if (String(output.staleIpPermissionsEgress).trim() === "") { contents[_SIPE] = []; } else if (output[_sIPE] != null && output[_sIPE][_i] != null) { contents[_SIPE] = de_StaleIpPermissionSet(__getArrayIfSingleItem(output[_sIPE][_i]), context); @@ -87586,7 +87586,7 @@ const de_StartDeclarativePoliciesReportResult = ( */ const de_StartInstancesResult = (output: any, context: __SerdeContext): StartInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_SIta] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_SIta] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -87655,7 +87655,7 @@ const de_StateReason = (output: any, context: __SerdeContext): StateReason => { */ const de_StopInstancesResult = (output: any, context: __SerdeContext): StopInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_SIto] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_SIto] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -87748,12 +87748,12 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { if (output[_aIAOC] != null) { contents[_AIAOC] = __parseBoolean(output[_aIAOC]); } - if (output.ipv6CidrBlockAssociationSet === "") { + if (String(output.ipv6CidrBlockAssociationSet).trim() === "") { contents[_ICBAS] = []; } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) { contents[_ICBAS] = de_SubnetIpv6CidrBlockAssociationSet(__getArrayIfSingleItem(output[_iCBAS][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -87868,7 +87868,7 @@ const de_SubnetCidrReservation = (output: any, context: __SerdeContext): SubnetC if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -87895,7 +87895,7 @@ const de_SubnetIpPrefixes = (output: any, context: __SerdeContext): SubnetIpPref if (output[_sIu] != null) { contents[_SIub] = __expectString(output[_sIu]); } - if (output.ipPrefixSet === "") { + if (String(output.ipPrefixSet).trim() === "") { contents[_IPpre] = []; } else if (output[_iPSpr] != null && output[_iPSpr][_i] != null) { contents[_IPpre] = de_ValueStringList(__getArrayIfSingleItem(output[_iPSpr][_i]), context); @@ -88166,7 +88166,7 @@ const de_TagSpecification = (output: any, context: __SerdeContext): TagSpecifica if (output[_rTe] != null) { contents[_RT] = __expectString(output[_rTe]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Ta] = []; } else if (output[_Tag] != null && output[_Tag][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Tag][_i]), context); @@ -88249,7 +88249,7 @@ const de_TargetGroups = (output: any, context: __SerdeContext): TargetGroup[] => */ const de_TargetGroupsConfig = (output: any, context: __SerdeContext): TargetGroupsConfig => { const contents: any = {}; - if (output.targetGroups === "") { + if (String(output.targetGroups).trim() === "") { contents[_TG] = []; } else if (output[_tGa] != null && output[_tGa][_i] != null) { contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_tGa][_i]), context); @@ -88277,7 +88277,7 @@ const de_TargetNetwork = (output: any, context: __SerdeContext): TargetNetwork = if (output[_sta] != null) { contents[_Statu] = de_AssociationStatus(output[_sta], context); } - if (output.securityGroups === "") { + if (String(output.securityGroups).trim() === "") { contents[_SG] = []; } else if (output[_sGe] != null && output[_sGe][_i] != null) { contents[_SG] = de_ValueStringList(__getArrayIfSingleItem(output[_sGe][_i]), context); @@ -88335,7 +88335,7 @@ const de_TerminateClientVpnConnectionsResult = ( if (output[_us] != null) { contents[_Us] = __expectString(output[_us]); } - if (output.connectionStatuses === "") { + if (String(output.connectionStatuses).trim() === "") { contents[_CSonn] = []; } else if (output[_cSonn] != null && output[_cSonn][_i] != null) { contents[_CSonn] = de_TerminateConnectionStatusSet(__getArrayIfSingleItem(output[_cSonn][_i]), context); @@ -88376,7 +88376,7 @@ const de_TerminateConnectionStatusSet = (output: any, context: __SerdeContext): */ const de_TerminateInstancesResult = (output: any, context: __SerdeContext): TerminateInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_TIer] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_TIer] = de_InstanceStateChangeList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -88439,17 +88439,17 @@ const de_TrafficMirrorFilter = (output: any, context: __SerdeContext): TrafficMi if (output[_tMFI] != null) { contents[_TMFI] = __expectString(output[_tMFI]); } - if (output.ingressFilterRuleSet === "") { + if (String(output.ingressFilterRuleSet).trim() === "") { contents[_IFRn] = []; } else if (output[_iFRS] != null && output[_iFRS][_i] != null) { contents[_IFRn] = de_TrafficMirrorFilterRuleList(__getArrayIfSingleItem(output[_iFRS][_i]), context); } - if (output.egressFilterRuleSet === "") { + if (String(output.egressFilterRuleSet).trim() === "") { contents[_EFR] = []; } else if (output[_eFRS] != null && output[_eFRS][_i] != null) { contents[_EFR] = de_TrafficMirrorFilterRuleList(__getArrayIfSingleItem(output[_eFRS][_i]), context); } - if (output.networkServiceSet === "") { + if (String(output.networkServiceSet).trim() === "") { contents[_NSe] = []; } else if (output[_nSS] != null && output[_nSS][_i] != null) { contents[_NSe] = de_TrafficMirrorNetworkServiceList(__getArrayIfSingleItem(output[_nSS][_i]), context); @@ -88457,7 +88457,7 @@ const de_TrafficMirrorFilter = (output: any, context: __SerdeContext): TrafficMi if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88503,7 +88503,7 @@ const de_TrafficMirrorFilterRule = (output: any, context: __SerdeContext): Traff if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88601,7 +88601,7 @@ const de_TrafficMirrorSession = (output: any, context: __SerdeContext): TrafficM if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88643,7 +88643,7 @@ const de_TrafficMirrorTarget = (output: any, context: __SerdeContext): TrafficMi if (output[_oI] != null) { contents[_OIwn] = __expectString(output[_oI]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88691,7 +88691,7 @@ const de_TransitGateway = (output: any, context: __SerdeContext): TransitGateway if (output[_opt] != null) { contents[_Op] = de_TransitGatewayOptions(output[_opt], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88754,7 +88754,7 @@ const de_TransitGatewayAttachment = (output: any, context: __SerdeContext): Tran if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88884,7 +88884,7 @@ const de_TransitGatewayConnect = (output: any, context: __SerdeContext): Transit if (output[_opt] != null) { contents[_Op] = de_TransitGatewayConnectOptions(output[_opt], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88934,7 +88934,7 @@ const de_TransitGatewayConnectPeer = (output: any, context: __SerdeContext): Tra if (output[_cPC] != null) { contents[_CPC] = de_TransitGatewayConnectPeerConfiguration(output[_cPC], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -88956,7 +88956,7 @@ const de_TransitGatewayConnectPeerConfiguration = ( if (output[_pAe] != null) { contents[_PAe] = __expectString(output[_pAe]); } - if (output.insideCidrBlocks === "") { + if (String(output.insideCidrBlocks).trim() === "") { contents[_ICBn] = []; } else if (output[_iCBn] != null && output[_iCBn][_i] != null) { contents[_ICBn] = de_InsideCidrBlocksStringList(__getArrayIfSingleItem(output[_iCBn][_i]), context); @@ -88964,7 +88964,7 @@ const de_TransitGatewayConnectPeerConfiguration = ( if (output[_pr] != null) { contents[_P] = __expectString(output[_pr]); } - if (output.bgpConfigurations === "") { + if (String(output.bgpConfigurations).trim() === "") { contents[_BCg] = []; } else if (output[_bCg] != null && output[_bCg][_i] != null) { contents[_BCg] = de_TransitGatewayAttachmentBgpConfigurationList(__getArrayIfSingleItem(output[_bCg][_i]), context); @@ -89005,7 +89005,7 @@ const de_TransitGatewayMulticastDeregisteredGroupMembers = ( if (output[_tGMDI] != null) { contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output.deregisteredNetworkInterfaceIds === "") { + if (String(output.deregisteredNetworkInterfaceIds).trim() === "") { contents[_DNII] = []; } else if (output[_dNII] != null && output[_dNII][_i] != null) { contents[_DNII] = de_ValueStringList(__getArrayIfSingleItem(output[_dNII][_i]), context); @@ -89027,7 +89027,7 @@ const de_TransitGatewayMulticastDeregisteredGroupSources = ( if (output[_tGMDI] != null) { contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output.deregisteredNetworkInterfaceIds === "") { + if (String(output.deregisteredNetworkInterfaceIds).trim() === "") { contents[_DNII] = []; } else if (output[_dNII] != null && output[_dNII][_i] != null) { contents[_DNII] = de_ValueStringList(__getArrayIfSingleItem(output[_dNII][_i]), context); @@ -89064,7 +89064,7 @@ const de_TransitGatewayMulticastDomain = (output: any, context: __SerdeContext): if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89135,7 +89135,7 @@ const de_TransitGatewayMulticastDomainAssociations = ( if (output[_rOI] != null) { contents[_ROI] = __expectString(output[_rOI]); } - if (output.subnets === "") { + if (String(output.subnets).trim() === "") { contents[_Subn] = []; } else if (output[_sub] != null && output[_sub][_i] != null) { contents[_Subn] = de_SubnetAssociationList(__getArrayIfSingleItem(output[_sub][_i]), context); @@ -89240,7 +89240,7 @@ const de_TransitGatewayMulticastRegisteredGroupMembers = ( if (output[_tGMDI] != null) { contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output.registeredNetworkInterfaceIds === "") { + if (String(output.registeredNetworkInterfaceIds).trim() === "") { contents[_RNII] = []; } else if (output[_rNII] != null && output[_rNII][_i] != null) { contents[_RNII] = de_ValueStringList(__getArrayIfSingleItem(output[_rNII][_i]), context); @@ -89262,7 +89262,7 @@ const de_TransitGatewayMulticastRegisteredGroupSources = ( if (output[_tGMDI] != null) { contents[_TGMDI] = __expectString(output[_tGMDI]); } - if (output.registeredNetworkInterfaceIds === "") { + if (String(output.registeredNetworkInterfaceIds).trim() === "") { contents[_RNII] = []; } else if (output[_rNII] != null && output[_rNII][_i] != null) { contents[_RNII] = de_ValueStringList(__getArrayIfSingleItem(output[_rNII][_i]), context); @@ -89281,7 +89281,7 @@ const de_TransitGatewayOptions = (output: any, context: __SerdeContext): Transit if (output[_aSA] != null) { contents[_ASA] = __strictParseLong(output[_aSA]) as number; } - if (output.transitGatewayCidrBlocks === "") { + if (String(output.transitGatewayCidrBlocks).trim() === "") { contents[_TGCB] = []; } else if (output[_tGCB] != null && output[_tGCB][_i] != null) { contents[_TGCB] = de_ValueStringList(__getArrayIfSingleItem(output[_tGCB][_i]), context); @@ -89345,7 +89345,7 @@ const de_TransitGatewayPeeringAttachment = (output: any, context: __SerdeContext if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89441,7 +89441,7 @@ const de_TransitGatewayPolicyTable = (output: any, context: __SerdeContext): Tra if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89634,7 +89634,7 @@ const de_TransitGatewayRoute = (output: any, context: __SerdeContext): TransitGa if (output[_tGRTAI] != null) { contents[_TGRTAI] = __expectString(output[_tGRTAI]); } - if (output.transitGatewayAttachments === "") { + if (String(output.transitGatewayAttachments).trim() === "") { contents[_TGAr] = []; } else if (output[_tGA] != null && output[_tGA][_i] != null) { contents[_TGAr] = de_TransitGatewayRouteAttachmentList(__getArrayIfSingleItem(output[_tGA][_i]), context); @@ -89713,7 +89713,7 @@ const de_TransitGatewayRouteTable = (output: any, context: __SerdeContext): Tran if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89759,7 +89759,7 @@ const de_TransitGatewayRouteTableAnnouncement = ( if (output[_cTre] != null) { contents[_CTre] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTre])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89918,7 +89918,7 @@ const de_TransitGatewayVpcAttachment = (output: any, context: __SerdeContext): T if (output[_st] != null) { contents[_Stat] = __expectString(output[_st]); } - if (output.subnetIds === "") { + if (String(output.subnetIds).trim() === "") { contents[_SIu] = []; } else if (output[_sIub] != null && output[_sIub][_i] != null) { contents[_SIu] = de_ValueStringList(__getArrayIfSingleItem(output[_sIub][_i]), context); @@ -89929,7 +89929,7 @@ const de_TransitGatewayVpcAttachment = (output: any, context: __SerdeContext): T if (output[_opt] != null) { contents[_Op] = de_TransitGatewayVpcAttachmentOptions(output[_opt], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -89994,7 +89994,7 @@ const de_TrunkInterfaceAssociation = (output: any, context: __SerdeContext): Tru if (output[_gK] != null) { contents[_GK] = __strictParseInt32(output[_gK]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -90051,37 +90051,37 @@ const de_TunnelOption = (output: any, context: __SerdeContext): TunnelOption => if (output[_dTA] != null) { contents[_DTA] = __expectString(output[_dTA]); } - if (output.phase1EncryptionAlgorithmSet === "") { + if (String(output.phase1EncryptionAlgorithmSet).trim() === "") { contents[_PEA] = []; } else if (output[_pEAS] != null && output[_pEAS][_i] != null) { contents[_PEA] = de_Phase1EncryptionAlgorithmsList(__getArrayIfSingleItem(output[_pEAS][_i]), context); } - if (output.phase2EncryptionAlgorithmSet === "") { + if (String(output.phase2EncryptionAlgorithmSet).trim() === "") { contents[_PEAh] = []; } else if (output[_pEASh] != null && output[_pEASh][_i] != null) { contents[_PEAh] = de_Phase2EncryptionAlgorithmsList(__getArrayIfSingleItem(output[_pEASh][_i]), context); } - if (output.phase1IntegrityAlgorithmSet === "") { + if (String(output.phase1IntegrityAlgorithmSet).trim() === "") { contents[_PIAh] = []; } else if (output[_pIASh] != null && output[_pIASh][_i] != null) { contents[_PIAh] = de_Phase1IntegrityAlgorithmsList(__getArrayIfSingleItem(output[_pIASh][_i]), context); } - if (output.phase2IntegrityAlgorithmSet === "") { + if (String(output.phase2IntegrityAlgorithmSet).trim() === "") { contents[_PIAha] = []; } else if (output[_pIASha] != null && output[_pIASha][_i] != null) { contents[_PIAha] = de_Phase2IntegrityAlgorithmsList(__getArrayIfSingleItem(output[_pIASha][_i]), context); } - if (output.phase1DHGroupNumberSet === "") { + if (String(output.phase1DHGroupNumberSet).trim() === "") { contents[_PDHGN] = []; } else if (output[_pDHGNS] != null && output[_pDHGNS][_i] != null) { contents[_PDHGN] = de_Phase1DHGroupNumbersList(__getArrayIfSingleItem(output[_pDHGNS][_i]), context); } - if (output.phase2DHGroupNumberSet === "") { + if (String(output.phase2DHGroupNumberSet).trim() === "") { contents[_PDHGNh] = []; } else if (output[_pDHGNSh] != null && output[_pDHGNSh][_i] != null) { contents[_PDHGNh] = de_Phase2DHGroupNumbersList(__getArrayIfSingleItem(output[_pDHGNSh][_i]), context); } - if (output.ikeVersionSet === "") { + if (String(output.ikeVersionSet).trim() === "") { contents[_IVke] = []; } else if (output[_iVS] != null && output[_iVS][_i] != null) { contents[_IVke] = de_IKEVersionsList(__getArrayIfSingleItem(output[_iVS][_i]), context); @@ -90117,12 +90117,12 @@ const de_UnassignIpv6AddressesResult = (output: any, context: __SerdeContext): U if (output[_nII] != null) { contents[_NII] = __expectString(output[_nII]); } - if (output.unassignedIpv6Addresses === "") { + if (String(output.unassignedIpv6Addresses).trim() === "") { contents[_UIAn] = []; } else if (output[_uIA] != null && output[_uIA][_i] != null) { contents[_UIAn] = de_Ipv6AddressList(__getArrayIfSingleItem(output[_uIA][_i]), context); } - if (output.unassignedIpv6PrefixSet === "") { + if (String(output.unassignedIpv6PrefixSet).trim() === "") { contents[_UIPn] = []; } else if (output[_uIPSn] != null && output[_uIPSn][_i] != null) { contents[_UIPn] = de_IpPrefixList(__getArrayIfSingleItem(output[_uIPSn][_i]), context); @@ -90141,7 +90141,7 @@ const de_UnassignPrivateNatGatewayAddressResult = ( if (output[_nGI] != null) { contents[_NGI] = __expectString(output[_nGI]); } - if (output.natGatewayAddressSet === "") { + if (String(output.natGatewayAddressSet).trim() === "") { contents[_NGA] = []; } else if (output[_nGAS] != null && output[_nGAS][_i] != null) { contents[_NGA] = de_NatGatewayAddressList(__getArrayIfSingleItem(output[_nGAS][_i]), context); @@ -90165,7 +90165,7 @@ const de_UnlockSnapshotResult = (output: any, context: __SerdeContext): UnlockSn */ const de_UnmonitorInstancesResult = (output: any, context: __SerdeContext): UnmonitorInstancesResult => { const contents: any = {}; - if (output.instancesSet === "") { + if (String(output.instancesSet).trim() === "") { contents[_IMn] = []; } else if (output[_iSn] != null && output[_iSn][_i] != null) { contents[_IMn] = de_InstanceMonitoringList(__getArrayIfSingleItem(output[_iSn][_i]), context); @@ -90405,7 +90405,7 @@ const de_ValidationError = (output: any, context: __SerdeContext): ValidationErr */ const de_ValidationWarning = (output: any, context: __SerdeContext): ValidationWarning => { const contents: any = {}; - if (output.errorSet === "") { + if (String(output.errorSet).trim() === "") { contents[_Err] = []; } else if (output[_eSr] != null && output[_eSr][_i] != null) { contents[_Err] = de_ErrorSet(__getArrayIfSingleItem(output[_eSr][_i]), context); @@ -90452,12 +90452,12 @@ const de_VCpuInfo = (output: any, context: __SerdeContext): VCpuInfo => { if (output[_dTPC] != null) { contents[_DTPC] = __strictParseInt32(output[_dTPC]) as number; } - if (output.validCores === "") { + if (String(output.validCores).trim() === "") { contents[_VCa] = []; } else if (output[_vCa] != null && output[_vCa][_i] != null) { contents[_VCa] = de_CoreCountList(__getArrayIfSingleItem(output[_vCa][_i]), context); } - if (output.validThreadsPerCore === "") { + if (String(output.validThreadsPerCore).trim() === "") { contents[_VTPC] = []; } else if (output[_vTPC] != null && output[_vTPC][_i] != null) { contents[_VTPC] = de_ThreadsPerCoreList(__getArrayIfSingleItem(output[_vTPC][_i]), context); @@ -90497,7 +90497,7 @@ const de_VerifiedAccessEndpoint = (output: any, context: __SerdeContext): Verifi if (output[_dVD] != null) { contents[_DVD] = __expectString(output[_dVD]); } - if (output.securityGroupIdSet === "") { + if (String(output.securityGroupIdSet).trim() === "") { contents[_SGI] = []; } else if (output[_sGIS] != null && output[_sGIS][_i] != null) { contents[_SGI] = de_SecurityGroupIdList(__getArrayIfSingleItem(output[_sGIS][_i]), context); @@ -90523,7 +90523,7 @@ const de_VerifiedAccessEndpoint = (output: any, context: __SerdeContext): Verifi if (output[_dT] != null) { contents[_DTel] = __expectString(output[_dT]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -90551,7 +90551,7 @@ const de_VerifiedAccessEndpointCidrOptions = ( if (output[_ci] != null) { contents[_C] = __expectString(output[_ci]); } - if (output.portRangeSet === "") { + if (String(output.portRangeSet).trim() === "") { contents[_PRo] = []; } else if (output[_pRS] != null && output[_pRS][_i] != null) { contents[_PRo] = de_VerifiedAccessEndpointPortRangeList(__getArrayIfSingleItem(output[_pRS][_i]), context); @@ -90559,7 +90559,7 @@ const de_VerifiedAccessEndpointCidrOptions = ( if (output[_pr] != null) { contents[_P] = __expectString(output[_pr]); } - if (output.subnetIdSet === "") { + if (String(output.subnetIdSet).trim() === "") { contents[_SIu] = []; } else if (output[_sISu] != null && output[_sISu][_i] != null) { contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList(__getArrayIfSingleItem(output[_sISu][_i]), context); @@ -90584,7 +90584,7 @@ const de_VerifiedAccessEndpointEniOptions = ( if (output[_po] != null) { contents[_Po] = __strictParseInt32(output[_po]) as number; } - if (output.portRangeSet === "") { + if (String(output.portRangeSet).trim() === "") { contents[_PRo] = []; } else if (output[_pRS] != null && output[_pRS][_i] != null) { contents[_PRo] = de_VerifiedAccessEndpointPortRangeList(__getArrayIfSingleItem(output[_pRS][_i]), context); @@ -90620,12 +90620,12 @@ const de_VerifiedAccessEndpointLoadBalancerOptions = ( if (output[_lBA] != null) { contents[_LBAo] = __expectString(output[_lBA]); } - if (output.subnetIdSet === "") { + if (String(output.subnetIdSet).trim() === "") { contents[_SIu] = []; } else if (output[_sISu] != null && output[_sISu][_i] != null) { contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList(__getArrayIfSingleItem(output[_sISu][_i]), context); } - if (output.portRangeSet === "") { + if (String(output.portRangeSet).trim() === "") { contents[_PRo] = []; } else if (output[_pRS] != null && output[_pRS][_i] != null) { contents[_PRo] = de_VerifiedAccessEndpointPortRangeList(__getArrayIfSingleItem(output[_pRS][_i]), context); @@ -90687,7 +90687,7 @@ const de_VerifiedAccessEndpointRdsOptions = ( if (output[_rEd] != null) { contents[_RE] = __expectString(output[_rEd]); } - if (output.subnetIdSet === "") { + if (String(output.subnetIdSet).trim() === "") { contents[_SIu] = []; } else if (output[_sISu] != null && output[_sISu][_i] != null) { contents[_SIu] = de_VerifiedAccessEndpointSubnetIdList(__getArrayIfSingleItem(output[_sISu][_i]), context); @@ -90777,7 +90777,7 @@ const de_VerifiedAccessGroup = (output: any, context: __SerdeContext): VerifiedA if (output[_dT] != null) { contents[_DTel] = __expectString(output[_dT]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -90810,7 +90810,7 @@ const de_VerifiedAccessInstance = (output: any, context: __SerdeContext): Verifi if (output[_de] != null) { contents[_De] = __expectString(output[_de]); } - if (output.verifiedAccessTrustProviderSet === "") { + if (String(output.verifiedAccessTrustProviderSet).trim() === "") { contents[_VATPe] = []; } else if (output[_vATPS] != null && output[_vATPS][_i] != null) { contents[_VATPe] = de_VerifiedAccessTrustProviderCondensedList(__getArrayIfSingleItem(output[_vATPS][_i]), context); @@ -90821,7 +90821,7 @@ const de_VerifiedAccessInstance = (output: any, context: __SerdeContext): Verifi if (output[_lUTa] != null) { contents[_LUTa] = __expectString(output[_lUTa]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -90846,7 +90846,7 @@ const de_VerifiedAccessInstanceCustomSubDomain = ( if (output[_sDu] != null) { contents[_SDu] = __expectString(output[_sDu]); } - if (output.nameserverSet === "") { + if (String(output.nameserverSet).trim() === "") { contents[_Na] = []; } else if (output[_nSa] != null && output[_nSa][_i] != null) { contents[_Na] = de_ValueStringList(__getArrayIfSingleItem(output[_nSa][_i]), context); @@ -90907,7 +90907,7 @@ const de_VerifiedAccessInstanceOpenVpnClientConfiguration = ( if (output[_confi] != null) { contents[_Confi] = __expectString(output[_confi]); } - if (output.routeSet === "") { + if (String(output.routeSet).trim() === "") { contents[_Rout] = []; } else if (output[_rSou] != null && output[_rSou][_i] != null) { contents[_Rout] = de_VerifiedAccessInstanceOpenVpnClientConfigurationRouteList( @@ -91153,7 +91153,7 @@ const de_VerifiedAccessTrustProvider = (output: any, context: __SerdeContext): V if (output[_lUTa] != null) { contents[_LUTa] = __expectString(output[_lUTa]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91280,7 +91280,7 @@ const de_Volume = (output: any, context: __SerdeContext): Volume => { if (output[_io] != null) { contents[_Io] = __strictParseInt32(output[_io]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91324,7 +91324,7 @@ const de_Volume = (output: any, context: __SerdeContext): Volume => { if (output[_cTr] != null) { contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTr])); } - if (output.attachmentSet === "") { + if (String(output.attachmentSet).trim() === "") { contents[_Atta] = []; } else if (output[_aSt] != null && output[_aSt][_i] != null) { contents[_Atta] = de_VolumeAttachmentList(__getArrayIfSingleItem(output[_aSt][_i]), context); @@ -91582,7 +91582,7 @@ const de_VolumeStatusEventsList = (output: any, context: __SerdeContext): Volume */ const de_VolumeStatusInfo = (output: any, context: __SerdeContext): VolumeStatusInfo => { const contents: any = {}; - if (output.details === "") { + if (String(output.details).trim() === "") { contents[_Det] = []; } else if (output[_det] != null && output[_det][_i] != null) { contents[_Det] = de_VolumeStatusDetailsList(__getArrayIfSingleItem(output[_det][_i]), context); @@ -91598,7 +91598,7 @@ const de_VolumeStatusInfo = (output: any, context: __SerdeContext): VolumeStatus */ const de_VolumeStatusItem = (output: any, context: __SerdeContext): VolumeStatusItem => { const contents: any = {}; - if (output.actionsSet === "") { + if (String(output.actionsSet).trim() === "") { contents[_Acti] = []; } else if (output[_aSct] != null && output[_aSct][_i] != null) { contents[_Acti] = de_VolumeStatusActionsList(__getArrayIfSingleItem(output[_aSct][_i]), context); @@ -91609,7 +91609,7 @@ const de_VolumeStatusItem = (output: any, context: __SerdeContext): VolumeStatus if (output[_oA] != null) { contents[_OA] = __expectString(output[_oA]); } - if (output.eventsSet === "") { + if (String(output.eventsSet).trim() === "") { contents[_Ev] = []; } else if (output[_eSv] != null && output[_eSv][_i] != null) { contents[_Ev] = de_VolumeStatusEventsList(__getArrayIfSingleItem(output[_eSv][_i]), context); @@ -91620,7 +91620,7 @@ const de_VolumeStatusItem = (output: any, context: __SerdeContext): VolumeStatus if (output[_vSol] != null) { contents[_VSol] = de_VolumeStatusInfo(output[_vSol], context); } - if (output.attachmentStatuses === "") { + if (String(output.attachmentStatuses).trim() === "") { contents[_AStt] = []; } else if (output[_aStt] != null && output[_aStt][_i] != null) { contents[_AStt] = de_VolumeStatusAttachmentStatusList(__getArrayIfSingleItem(output[_aStt][_i]), context); @@ -91656,12 +91656,12 @@ const de_Vpc = (output: any, context: __SerdeContext): Vpc => { if (output[_iTns] != null) { contents[_ITns] = __expectString(output[_iTns]); } - if (output.ipv6CidrBlockAssociationSet === "") { + if (String(output.ipv6CidrBlockAssociationSet).trim() === "") { contents[_ICBAS] = []; } else if (output[_iCBAS] != null && output[_iCBAS][_i] != null) { contents[_ICBAS] = de_VpcIpv6CidrBlockAssociationSet(__getArrayIfSingleItem(output[_iCBAS][_i]), context); } - if (output.cidrBlockAssociationSet === "") { + if (String(output.cidrBlockAssociationSet).trim() === "") { contents[_CBAS] = []; } else if (output[_cBAS] != null && output[_cBAS][_i] != null) { contents[_CBAS] = de_VpcCidrBlockAssociationSet(__getArrayIfSingleItem(output[_cBAS][_i]), context); @@ -91672,7 +91672,7 @@ const de_Vpc = (output: any, context: __SerdeContext): Vpc => { if (output[_eCn] != null) { contents[_ECn] = de_VpcEncryptionControl(output[_eCn], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91749,7 +91749,7 @@ const de_VpcBlockPublicAccessExclusion = (output: any, context: __SerdeContext): if (output[_dTele] != null) { contents[_DTelet] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_dTele])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91853,7 +91853,7 @@ const de_VpcClassicLink = (output: any, context: __SerdeContext): VpcClassicLink if (output[_cLE] != null) { contents[_CLE] = __parseBoolean(output[_cLE]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91898,7 +91898,7 @@ const de_VpcEncryptionControl = (output: any, context: __SerdeContext): VpcEncry if (output[_rEes] != null) { contents[_REeso] = de_VpcEncryptionControlExclusions(output[_rEes], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -91966,17 +91966,17 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { if (output[_pDo] != null) { contents[_PD] = __expectString(output[_pDo]); } - if (output.routeTableIdSet === "") { + if (String(output.routeTableIdSet).trim() === "") { contents[_RTIo] = []; } else if (output[_rTIS] != null && output[_rTIS][_i] != null) { contents[_RTIo] = de_ValueStringList(__getArrayIfSingleItem(output[_rTIS][_i]), context); } - if (output.subnetIdSet === "") { + if (String(output.subnetIdSet).trim() === "") { contents[_SIu] = []; } else if (output[_sISu] != null && output[_sISu][_i] != null) { contents[_SIu] = de_ValueStringList(__getArrayIfSingleItem(output[_sISu][_i]), context); } - if (output.groupSet === "") { + if (String(output.groupSet).trim() === "") { contents[_G] = []; } else if (output[_gS] != null && output[_gS][_i] != null) { contents[_G] = de_GroupIdentifierSet(__getArrayIfSingleItem(output[_gS][_i]), context); @@ -91993,12 +91993,12 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { if (output[_rMe] != null) { contents[_RMeq] = __parseBoolean(output[_rMe]); } - if (output.networkInterfaceIdSet === "") { + if (String(output.networkInterfaceIdSet).trim() === "") { contents[_NIIe] = []; } else if (output[_nIIS] != null && output[_nIIS][_i] != null) { contents[_NIIe] = de_ValueStringList(__getArrayIfSingleItem(output[_nIIS][_i]), context); } - if (output.dnsEntrySet === "") { + if (String(output.dnsEntrySet).trim() === "") { contents[_DE] = []; } else if (output[_dES] != null && output[_dES][_i] != null) { contents[_DE] = de_DnsEntrySet(__getArrayIfSingleItem(output[_dES][_i]), context); @@ -92006,7 +92006,7 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { if (output[_cTrea] != null) { contents[_CTrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTrea])); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -92017,12 +92017,12 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { if (output[_lEa] != null) { contents[_LEa] = de_LastError(output[_lEa], context); } - if (output.ipv4PrefixSet === "") { + if (String(output.ipv4PrefixSet).trim() === "") { contents[_IPp] = []; } else if (output[_iPSpv] != null && output[_iPSpv][_i] != null) { contents[_IPp] = de_SubnetIpPrefixesList(__getArrayIfSingleItem(output[_iPSpv][_i]), context); } - if (output.ipv6PrefixSet === "") { + if (String(output.ipv6PrefixSet).trim() === "") { contents[_IP] = []; } else if (output[_iPSpvr] != null && output[_iPSpvr][_i] != null) { contents[_IP] = de_SubnetIpPrefixesList(__getArrayIfSingleItem(output[_iPSpvr][_i]), context); @@ -92080,7 +92080,7 @@ const de_VpcEndpointAssociation = (output: any, context: __SerdeContext): VpcEnd if (output[_rCGA] != null) { contents[_RCGA] = __expectString(output[_rCGA]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -92119,17 +92119,17 @@ const de_VpcEndpointConnection = (output: any, context: __SerdeContext): VpcEndp if (output[_cTrea] != null) { contents[_CTrea] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_cTrea])); } - if (output.dnsEntrySet === "") { + if (String(output.dnsEntrySet).trim() === "") { contents[_DE] = []; } else if (output[_dES] != null && output[_dES][_i] != null) { contents[_DE] = de_DnsEntrySet(__getArrayIfSingleItem(output[_dES][_i]), context); } - if (output.networkLoadBalancerArnSet === "") { + if (String(output.networkLoadBalancerArnSet).trim() === "") { contents[_NLBAe] = []; } else if (output[_nLBAS] != null && output[_nLBAS][_i] != null) { contents[_NLBAe] = de_ValueStringList(__getArrayIfSingleItem(output[_nLBAS][_i]), context); } - if (output.gatewayLoadBalancerArnSet === "") { + if (String(output.gatewayLoadBalancerArnSet).trim() === "") { contents[_GLBA] = []; } else if (output[_gLBAS] != null && output[_gLBAS][_i] != null) { contents[_GLBA] = de_ValueStringList(__getArrayIfSingleItem(output[_gLBAS][_i]), context); @@ -92140,7 +92140,7 @@ const de_VpcEndpointConnection = (output: any, context: __SerdeContext): VpcEndp if (output[_vECIp] != null) { contents[_VECIp] = __expectString(output[_vECIp]); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -92241,7 +92241,7 @@ const de_VpcPeeringConnection = (output: any, context: __SerdeContext): VpcPeeri if (output[_sta] != null) { contents[_Statu] = de_VpcPeeringConnectionStateReason(output[_sta], context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -92305,12 +92305,12 @@ const de_VpcPeeringConnectionVpcInfo = (output: any, context: __SerdeContext): V if (output[_cB] != null) { contents[_CB] = __expectString(output[_cB]); } - if (output.ipv6CidrBlockSet === "") { + if (String(output.ipv6CidrBlockSet).trim() === "") { contents[_ICBSp] = []; } else if (output[_iCBSp] != null && output[_iCBSp][_i] != null) { contents[_ICBSp] = de_Ipv6CidrBlockSet(__getArrayIfSingleItem(output[_iCBSp][_i]), context); } - if (output.cidrBlockSet === "") { + if (String(output.cidrBlockSet).trim() === "") { contents[_CBSid] = []; } else if (output[_cBSid] != null && output[_cBSid][_i] != null) { contents[_CBSid] = de_CidrBlockSet(__getArrayIfSingleItem(output[_cBSid][_i]), context); @@ -92353,17 +92353,17 @@ const de_VpnConnection = (output: any, context: __SerdeContext): VpnConnection = if (output[_opt] != null) { contents[_Op] = de_VpnConnectionOptions(output[_opt], context); } - if (output.routes === "") { + if (String(output.routes).trim() === "") { contents[_Rout] = []; } else if (output[_rou] != null && output[_rou][_i] != null) { contents[_Rout] = de_VpnStaticRouteList(__getArrayIfSingleItem(output[_rou][_i]), context); } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); } - if (output.vgwTelemetry === "") { + if (String(output.vgwTelemetry).trim() === "") { contents[_VTg] = []; } else if (output[_vTg] != null && output[_vTg][_i] != null) { contents[_VTg] = de_VgwTelemetryList(__getArrayIfSingleItem(output[_vTg][_i]), context); @@ -92466,7 +92466,7 @@ const de_VpnConnectionOptions = (output: any, context: __SerdeContext): VpnConne if (output[_tIIV] != null) { contents[_TIIV] = __expectString(output[_tIIV]); } - if (output.tunnelOptionSet === "") { + if (String(output.tunnelOptionSet).trim() === "") { contents[_TO] = []; } else if (output[_tOS] != null && output[_tOS][_i] != null) { contents[_TO] = de_TunnelOptionsList(__getArrayIfSingleItem(output[_tOS][_i]), context); @@ -92482,7 +92482,7 @@ const de_VpnGateway = (output: any, context: __SerdeContext): VpnGateway => { if (output[_aSA] != null) { contents[_ASA] = __strictParseLong(output[_aSA]) as number; } - if (output.tagSet === "") { + if (String(output.tagSet).trim() === "") { contents[_Ta] = []; } else if (output[_tS] != null && output[_tS][_i] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_tS][_i]), context); @@ -92499,7 +92499,7 @@ const de_VpnGateway = (output: any, context: __SerdeContext): VpnGateway => { if (output[_aZ] != null) { contents[_AZ] = __expectString(output[_aZ]); } - if (output.attachments === "") { + if (String(output.attachments).trim() === "") { contents[_VAp] = []; } else if (output[_att] != null && output[_att][_i] != null) { contents[_VAp] = de_VpcAttachmentList(__getArrayIfSingleItem(output[_att][_i]), context); diff --git a/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts b/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts index 3e374b49304e..590b455ffcd0 100644 --- a/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts +++ b/clients/client-elastic-beanstalk/src/protocols/Aws_query.ts @@ -4105,12 +4105,12 @@ const de_ApplicationDescription = (output: any, context: __SerdeContext): Applic if (output[_DU] != null) { contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } - if (output.Versions === "") { + if (String(output.Versions).trim() === "") { contents[_Ve] = []; } else if (output[_Ve] != null && output[_Ve][_m] != null) { contents[_Ve] = de_VersionLabelsList(__getArrayIfSingleItem(output[_Ve][_m]), context); } - if (output.ConfigurationTemplates === "") { + if (String(output.ConfigurationTemplates).trim() === "") { contents[_CTo] = []; } else if (output[_CTo] != null && output[_CTo][_m] != null) { contents[_CTo] = de_ConfigurationTemplateNamesList(__getArrayIfSingleItem(output[_CTo][_m]), context); @@ -4148,7 +4148,7 @@ const de_ApplicationDescriptionMessage = (output: any, context: __SerdeContext): */ const de_ApplicationDescriptionsMessage = (output: any, context: __SerdeContext): ApplicationDescriptionsMessage => { const contents: any = {}; - if (output.Applications === "") { + if (String(output.Applications).trim() === "") { contents[_App] = []; } else if (output[_App] != null && output[_App][_m] != null) { contents[_App] = de_ApplicationDescriptionList(__getArrayIfSingleItem(output[_App][_m]), context); @@ -4284,7 +4284,7 @@ const de_ApplicationVersionDescriptionsMessage = ( context: __SerdeContext ): ApplicationVersionDescriptionsMessage => { const contents: any = {}; - if (output.ApplicationVersions === "") { + if (String(output.ApplicationVersions).trim() === "") { contents[_AVp] = []; } else if (output[_AVp] != null && output[_AVp][_m] != null) { contents[_AVp] = de_ApplicationVersionDescriptionList(__getArrayIfSingleItem(output[_AVp][_m]), context); @@ -4455,7 +4455,7 @@ const de_ConfigurationOptionDescription = (output: any, context: __SerdeContext) if (output[_VT] != null) { contents[_VT] = __expectString(output[_VT]); } - if (output.ValueOptions === "") { + if (String(output.ValueOptions).trim() === "") { contents[_VO] = []; } else if (output[_VO] != null && output[_VO][_m] != null) { contents[_VO] = de_ConfigurationOptionPossibleValues(__getArrayIfSingleItem(output[_VO][_m]), context); @@ -4511,7 +4511,7 @@ const de_ConfigurationOptionsDescription = (output: any, context: __SerdeContext if (output[_PA] != null) { contents[_PA] = __expectString(output[_PA]); } - if (output.Options === "") { + if (String(output.Options).trim() === "") { contents[_O] = []; } else if (output[_O] != null && output[_O][_m] != null) { contents[_O] = de_ConfigurationOptionDescriptionsList(__getArrayIfSingleItem(output[_O][_m]), context); @@ -4585,7 +4585,7 @@ const de_ConfigurationSettingsDescription = ( if (output[_DU] != null) { contents[_DU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DU])); } - if (output.OptionSettings === "") { + if (String(output.OptionSettings).trim() === "") { contents[_OS] = []; } else if (output[_OS] != null && output[_OS][_m] != null) { contents[_OS] = de_ConfigurationOptionSettingsList(__getArrayIfSingleItem(output[_OS][_m]), context); @@ -4615,7 +4615,7 @@ const de_ConfigurationSettingsDescriptions = ( context: __SerdeContext ): ConfigurationSettingsDescriptions => { const contents: any = {}; - if (output.ConfigurationSettings === "") { + if (String(output.ConfigurationSettings).trim() === "") { contents[_CSo] = []; } else if (output[_CSo] != null && output[_CSo][_m] != null) { contents[_CSo] = de_ConfigurationSettingsDescriptionList(__getArrayIfSingleItem(output[_CSo][_m]), context); @@ -4631,7 +4631,7 @@ const de_ConfigurationSettingsValidationMessages = ( context: __SerdeContext ): ConfigurationSettingsValidationMessages => { const contents: any = {}; - if (output.Messages === "") { + if (String(output.Messages).trim() === "") { contents[_M] = []; } else if (output[_M] != null && output[_M][_m] != null) { contents[_M] = de_ValidationMessagesList(__getArrayIfSingleItem(output[_M][_m]), context); @@ -4794,7 +4794,7 @@ const de_DescribeEnvironmentHealthResult = (output: any, context: __SerdeContext if (output[_C] != null) { contents[_C] = __expectString(output[_C]); } - if (output.Causes === "") { + if (String(output.Causes).trim() === "") { contents[_Ca] = []; } else if (output[_Ca] != null && output[_Ca][_m] != null) { contents[_Ca] = de_Causes(__getArrayIfSingleItem(output[_Ca][_m]), context); @@ -4819,7 +4819,7 @@ const de_DescribeEnvironmentManagedActionHistoryResult = ( context: __SerdeContext ): DescribeEnvironmentManagedActionHistoryResult => { const contents: any = {}; - if (output.ManagedActionHistoryItems === "") { + if (String(output.ManagedActionHistoryItems).trim() === "") { contents[_MAHI] = []; } else if (output[_MAHI] != null && output[_MAHI][_m] != null) { contents[_MAHI] = de_ManagedActionHistoryItems(__getArrayIfSingleItem(output[_MAHI][_m]), context); @@ -4838,7 +4838,7 @@ const de_DescribeEnvironmentManagedActionsResult = ( context: __SerdeContext ): DescribeEnvironmentManagedActionsResult => { const contents: any = {}; - if (output.ManagedActions === "") { + if (String(output.ManagedActions).trim() === "") { contents[_MA] = []; } else if (output[_MA] != null && output[_MA][_m] != null) { contents[_MA] = de_ManagedActions(__getArrayIfSingleItem(output[_MA][_m]), context); @@ -4851,7 +4851,7 @@ const de_DescribeEnvironmentManagedActionsResult = ( */ const de_DescribeInstancesHealthResult = (output: any, context: __SerdeContext): DescribeInstancesHealthResult => { const contents: any = {}; - if (output.InstanceHealthList === "") { + if (String(output.InstanceHealthList).trim() === "") { contents[_IHL] = []; } else if (output[_IHL] != null && output[_IHL][_m] != null) { contents[_IHL] = de_InstanceHealthList(__getArrayIfSingleItem(output[_IHL][_m]), context); @@ -4949,7 +4949,7 @@ const de_EnvironmentDescription = (output: any, context: __SerdeContext): Enviro if (output[_Ti] != null) { contents[_Ti] = de_EnvironmentTier(output[_Ti], context); } - if (output.EnvironmentLinks === "") { + if (String(output.EnvironmentLinks).trim() === "") { contents[_EL] = []; } else if (output[_EL] != null && output[_EL][_m] != null) { contents[_EL] = de_EnvironmentLinks(__getArrayIfSingleItem(output[_EL][_m]), context); @@ -4979,7 +4979,7 @@ const de_EnvironmentDescriptionsList = (output: any, context: __SerdeContext): E */ const de_EnvironmentDescriptionsMessage = (output: any, context: __SerdeContext): EnvironmentDescriptionsMessage => { const contents: any = {}; - if (output.Environments === "") { + if (String(output.Environments).trim() === "") { contents[_En] = []; } else if (output[_En] != null && output[_En][_m] != null) { contents[_En] = de_EnvironmentDescriptionsList(__getArrayIfSingleItem(output[_En][_m]), context); @@ -5054,37 +5054,37 @@ const de_EnvironmentResourceDescription = (output: any, context: __SerdeContext) if (output[_EN] != null) { contents[_EN] = __expectString(output[_EN]); } - if (output.AutoScalingGroups === "") { + if (String(output.AutoScalingGroups).trim() === "") { contents[_ASG] = []; } else if (output[_ASG] != null && output[_ASG][_m] != null) { contents[_ASG] = de_AutoScalingGroupList(__getArrayIfSingleItem(output[_ASG][_m]), context); } - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_In] = []; } else if (output[_In] != null && output[_In][_m] != null) { contents[_In] = de_InstanceList(__getArrayIfSingleItem(output[_In][_m]), context); } - if (output.LaunchConfigurations === "") { + if (String(output.LaunchConfigurations).trim() === "") { contents[_LC] = []; } else if (output[_LC] != null && output[_LC][_m] != null) { contents[_LC] = de_LaunchConfigurationList(__getArrayIfSingleItem(output[_LC][_m]), context); } - if (output.LaunchTemplates === "") { + if (String(output.LaunchTemplates).trim() === "") { contents[_LT] = []; } else if (output[_LT] != null && output[_LT][_m] != null) { contents[_LT] = de_LaunchTemplateList(__getArrayIfSingleItem(output[_LT][_m]), context); } - if (output.LoadBalancers === "") { + if (String(output.LoadBalancers).trim() === "") { contents[_LB] = []; } else if (output[_LB] != null && output[_LB][_m] != null) { contents[_LB] = de_LoadBalancerList(__getArrayIfSingleItem(output[_LB][_m]), context); } - if (output.Triggers === "") { + if (String(output.Triggers).trim() === "") { contents[_Tr] = []; } else if (output[_Tr] != null && output[_Tr][_m] != null) { contents[_Tr] = de_TriggerList(__getArrayIfSingleItem(output[_Tr][_m]), context); } - if (output.Queues === "") { + if (String(output.Queues).trim() === "") { contents[_Q] = []; } else if (output[_Q] != null && output[_Q][_m] != null) { contents[_Q] = de_QueueList(__getArrayIfSingleItem(output[_Q][_m]), context); @@ -5185,7 +5185,7 @@ const de_EventDescriptionList = (output: any, context: __SerdeContext): EventDes */ const de_EventDescriptionsMessage = (output: any, context: __SerdeContext): EventDescriptionsMessage => { const contents: any = {}; - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_m] != null) { contents[_Ev] = de_EventDescriptionList(__getArrayIfSingleItem(output[_Ev][_m]), context); @@ -5367,12 +5367,12 @@ const de_ListAvailableSolutionStacksResultMessage = ( context: __SerdeContext ): ListAvailableSolutionStacksResultMessage => { const contents: any = {}; - if (output.SolutionStacks === "") { + if (String(output.SolutionStacks).trim() === "") { contents[_SS] = []; } else if (output[_SS] != null && output[_SS][_m] != null) { contents[_SS] = de_AvailableSolutionStackNamesList(__getArrayIfSingleItem(output[_SS][_m]), context); } - if (output.SolutionStackDetails === "") { + if (String(output.SolutionStackDetails).trim() === "") { contents[_SSD] = []; } else if (output[_SSD] != null && output[_SSD][_m] != null) { contents[_SSD] = de_AvailableSolutionStackDetailsList(__getArrayIfSingleItem(output[_SSD][_m]), context); @@ -5399,7 +5399,7 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { */ const de_ListPlatformBranchesResult = (output: any, context: __SerdeContext): ListPlatformBranchesResult => { const contents: any = {}; - if (output.PlatformBranchSummaryList === "") { + if (String(output.PlatformBranchSummaryList).trim() === "") { contents[_PBSL] = []; } else if (output[_PBSL] != null && output[_PBSL][_m] != null) { contents[_PBSL] = de_PlatformBranchSummaryList(__getArrayIfSingleItem(output[_PBSL][_m]), context); @@ -5415,7 +5415,7 @@ const de_ListPlatformBranchesResult = (output: any, context: __SerdeContext): Li */ const de_ListPlatformVersionsResult = (output: any, context: __SerdeContext): ListPlatformVersionsResult => { const contents: any = {}; - if (output.PlatformSummaryList === "") { + if (String(output.PlatformSummaryList).trim() === "") { contents[_PSL] = []; } else if (output[_PSL] != null && output[_PSL][_m] != null) { contents[_PSL] = de_PlatformSummaryList(__getArrayIfSingleItem(output[_PSL][_m]), context); @@ -5459,7 +5459,7 @@ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadB if (output[_Do] != null) { contents[_Do] = __expectString(output[_Do]); } - if (output.Listeners === "") { + if (String(output.Listeners).trim() === "") { contents[_Li] = []; } else if (output[_Li] != null && output[_Li][_m] != null) { contents[_Li] = de_LoadBalancerListenersDescription(__getArrayIfSingleItem(output[_Li][_m]), context); @@ -5656,7 +5656,7 @@ const de_PlatformBranchSummary = (output: any, context: __SerdeContext): Platfor if (output[_BO] != null) { contents[_BO] = __strictParseInt32(output[_BO]) as number; } - if (output.SupportedTierList === "") { + if (String(output.SupportedTierList).trim() === "") { contents[_STL] = []; } else if (output[_STL] != null && output[_STL][_m] != null) { contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); @@ -5719,27 +5719,27 @@ const de_PlatformDescription = (output: any, context: __SerdeContext): PlatformD if (output[_OSV] != null) { contents[_OSV] = __expectString(output[_OSV]); } - if (output.ProgrammingLanguages === "") { + if (String(output.ProgrammingLanguages).trim() === "") { contents[_PL] = []; } else if (output[_PL] != null && output[_PL][_m] != null) { contents[_PL] = de_PlatformProgrammingLanguages(__getArrayIfSingleItem(output[_PL][_m]), context); } - if (output.Frameworks === "") { + if (String(output.Frameworks).trim() === "") { contents[_Fr] = []; } else if (output[_Fr] != null && output[_Fr][_m] != null) { contents[_Fr] = de_PlatformFrameworks(__getArrayIfSingleItem(output[_Fr][_m]), context); } - if (output.CustomAmiList === "") { + if (String(output.CustomAmiList).trim() === "") { contents[_CAL] = []; } else if (output[_CAL] != null && output[_CAL][_m] != null) { contents[_CAL] = de_CustomAmiList(__getArrayIfSingleItem(output[_CAL][_m]), context); } - if (output.SupportedTierList === "") { + if (String(output.SupportedTierList).trim() === "") { contents[_STL] = []; } else if (output[_STL] != null && output[_STL][_m] != null) { contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); } - if (output.SupportedAddonList === "") { + if (String(output.SupportedAddonList).trim() === "") { contents[_SAL] = []; } else if (output[_SAL] != null && output[_SAL][_m] != null) { contents[_SAL] = de_SupportedAddonList(__getArrayIfSingleItem(output[_SAL][_m]), context); @@ -5829,12 +5829,12 @@ const de_PlatformSummary = (output: any, context: __SerdeContext): PlatformSumma if (output[_OSV] != null) { contents[_OSV] = __expectString(output[_OSV]); } - if (output.SupportedTierList === "") { + if (String(output.SupportedTierList).trim() === "") { contents[_STL] = []; } else if (output[_STL] != null && output[_STL][_m] != null) { contents[_STL] = de_SupportedTierList(__getArrayIfSingleItem(output[_STL][_m]), context); } - if (output.SupportedAddonList === "") { + if (String(output.SupportedAddonList).trim() === "") { contents[_SAL] = []; } else if (output[_SAL] != null && output[_SAL][_m] != null) { contents[_SAL] = de_SupportedAddonList(__getArrayIfSingleItem(output[_SAL][_m]), context); @@ -5957,7 +5957,7 @@ const de_ResourceTagsDescriptionMessage = (output: any, context: __SerdeContext) if (output[_RA] != null) { contents[_RA] = __expectString(output[_RA]); } - if (output.ResourceTags === "") { + if (String(output.ResourceTags).trim() === "") { contents[_RT] = []; } else if (output[_RT] != null && output[_RT][_m] != null) { contents[_RT] = de_TagList(__getArrayIfSingleItem(output[_RT][_m]), context); @@ -5987,7 +5987,7 @@ const de_RetrieveEnvironmentInfoResultMessage = ( context: __SerdeContext ): RetrieveEnvironmentInfoResultMessage => { const contents: any = {}; - if (output.EnvironmentInfo === "") { + if (String(output.EnvironmentInfo).trim() === "") { contents[_EInv] = []; } else if (output[_EInv] != null && output[_EInv][_m] != null) { contents[_EInv] = de_EnvironmentInfoDescriptionList(__getArrayIfSingleItem(output[_EInv][_m]), context); @@ -6048,7 +6048,7 @@ const de_SingleInstanceHealth = (output: any, context: __SerdeContext): SingleIn if (output[_C] != null) { contents[_C] = __expectString(output[_C]); } - if (output.Causes === "") { + if (String(output.Causes).trim() === "") { contents[_Ca] = []; } else if (output[_Ca] != null && output[_Ca][_m] != null) { contents[_Ca] = de_Causes(__getArrayIfSingleItem(output[_Ca][_m]), context); @@ -6082,7 +6082,7 @@ const de_SolutionStackDescription = (output: any, context: __SerdeContext): Solu if (output[_SSN] != null) { contents[_SSN] = __expectString(output[_SSN]); } - if (output.PermittedFileTypes === "") { + if (String(output.PermittedFileTypes).trim() === "") { contents[_PFT] = []; } else if (output[_PFT] != null && output[_PFT][_m] != null) { contents[_PFT] = de_SolutionStackFileTypeList(__getArrayIfSingleItem(output[_PFT][_m]), context); @@ -6179,7 +6179,7 @@ const de_SystemStatus = (output: any, context: __SerdeContext): SystemStatus => if (output[_CPUU] != null) { contents[_CPUU] = de_CPUUtilization(output[_CPUU], context); } - if (output.LoadAverage === "") { + if (String(output.LoadAverage).trim() === "") { contents[_LAo] = []; } else if (output[_LAo] != null && output[_LAo][_m] != null) { contents[_LAo] = de_LoadAverage(__getArrayIfSingleItem(output[_LAo][_m]), context); diff --git a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts index 108f4e1f4116..45354b7df7a0 100644 --- a/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing-v2/src/protocols/Aws_query.ts @@ -5884,7 +5884,7 @@ const de_Actions = (output: any, context: __SerdeContext): Action[] => { */ const de_AddListenerCertificatesOutput = (output: any, context: __SerdeContext): AddListenerCertificatesOutput => { const contents: any = {}; - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); @@ -5905,7 +5905,7 @@ const de_AddTagsOutput = (output: any, context: __SerdeContext): AddTagsOutput = */ const de_AddTrustStoreRevocationsOutput = (output: any, context: __SerdeContext): AddTrustStoreRevocationsOutput => { const contents: any = {}; - if (output.TrustStoreRevocations === "") { + if (String(output.TrustStoreRevocations).trim() === "") { contents[_TSR] = []; } else if (output[_TSR] != null && output[_TSR][_m] != null) { contents[_TSR] = de_TrustStoreRevocations(__getArrayIfSingleItem(output[_TSR][_m]), context); @@ -6016,7 +6016,7 @@ const de_AuthenticateCognitoActionConfig = (output: any, context: __SerdeContext if (output[_ST] != null) { contents[_ST] = __strictParseLong(output[_ST]) as number; } - if (output.AuthenticationRequestExtraParams === "") { + if (String(output.AuthenticationRequestExtraParams).trim() === "") { contents[_AREP] = {}; } else if (output[_AREP] != null && output[_AREP][_e] != null) { contents[_AREP] = de_AuthenticateCognitoActionAuthenticationRequestExtraParams( @@ -6078,7 +6078,7 @@ const de_AuthenticateOidcActionConfig = (output: any, context: __SerdeContext): if (output[_ST] != null) { contents[_ST] = __strictParseLong(output[_ST]) as number; } - if (output.AuthenticationRequestExtraParams === "") { + if (String(output.AuthenticationRequestExtraParams).trim() === "") { contents[_AREP] = {}; } else if (output[_AREP] != null && output[_AREP][_e] != null) { contents[_AREP] = de_AuthenticateOidcActionAuthenticationRequestExtraParams( @@ -6109,12 +6109,12 @@ const de_AvailabilityZone = (output: any, context: __SerdeContext): Availability if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.LoadBalancerAddresses === "") { + if (String(output.LoadBalancerAddresses).trim() === "") { contents[_LBAoa] = []; } else if (output[_LBAoa] != null && output[_LBAoa][_m] != null) { contents[_LBAoa] = de_LoadBalancerAddresses(__getArrayIfSingleItem(output[_LBAoa][_m]), context); } - if (output.SourceNatIpv6Prefixes === "") { + if (String(output.SourceNatIpv6Prefixes).trim() === "") { contents[_SNIPo] = []; } else if (output[_SNIPo] != null && output[_SNIPo][_m] != null) { contents[_SNIPo] = de_SourceNatIpv6Prefixes(__getArrayIfSingleItem(output[_SNIPo][_m]), context); @@ -6283,7 +6283,7 @@ const de_Ciphers = (output: any, context: __SerdeContext): Cipher[] => { */ const de_CreateListenerOutput = (output: any, context: __SerdeContext): CreateListenerOutput => { const contents: any = {}; - if (output.Listeners === "") { + if (String(output.Listeners).trim() === "") { contents[_L] = []; } else if (output[_L] != null && output[_L][_m] != null) { contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); @@ -6296,7 +6296,7 @@ const de_CreateListenerOutput = (output: any, context: __SerdeContext): CreateLi */ const de_CreateLoadBalancerOutput = (output: any, context: __SerdeContext): CreateLoadBalancerOutput => { const contents: any = {}; - if (output.LoadBalancers === "") { + if (String(output.LoadBalancers).trim() === "") { contents[_LB] = []; } else if (output[_LB] != null && output[_LB][_m] != null) { contents[_LB] = de_LoadBalancers(__getArrayIfSingleItem(output[_LB][_m]), context); @@ -6309,7 +6309,7 @@ const de_CreateLoadBalancerOutput = (output: any, context: __SerdeContext): Crea */ const de_CreateRuleOutput = (output: any, context: __SerdeContext): CreateRuleOutput => { const contents: any = {}; - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Ru] = []; } else if (output[_Ru] != null && output[_Ru][_m] != null) { contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); @@ -6322,7 +6322,7 @@ const de_CreateRuleOutput = (output: any, context: __SerdeContext): CreateRuleOu */ const de_CreateTargetGroupOutput = (output: any, context: __SerdeContext): CreateTargetGroupOutput => { const contents: any = {}; - if (output.TargetGroups === "") { + if (String(output.TargetGroups).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_m] != null) { contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); @@ -6335,7 +6335,7 @@ const de_CreateTargetGroupOutput = (output: any, context: __SerdeContext): Creat */ const de_CreateTrustStoreOutput = (output: any, context: __SerdeContext): CreateTrustStoreOutput => { const contents: any = {}; - if (output.TrustStores === "") { + if (String(output.TrustStores).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_m] != null) { contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); @@ -6421,7 +6421,7 @@ const de_DeregisterTargetsOutput = (output: any, context: __SerdeContext): Dereg */ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; - if (output.Limits === "") { + if (String(output.Limits).trim() === "") { contents[_Li] = []; } else if (output[_Li] != null && output[_Li][_m] != null) { contents[_Li] = de_Limits(__getArrayIfSingleItem(output[_Li][_m]), context); @@ -6449,7 +6449,7 @@ const de_DescribeCapacityReservationOutput = ( if (output[_MLBC] != null) { contents[_MLBC] = de_MinimumLoadBalancerCapacity(output[_MLBC], context); } - if (output.CapacityReservationState === "") { + if (String(output.CapacityReservationState).trim() === "") { contents[_CRS] = []; } else if (output[_CRS] != null && output[_CRS][_m] != null) { contents[_CRS] = de_ZonalCapacityReservationStates(__getArrayIfSingleItem(output[_CRS][_m]), context); @@ -6465,7 +6465,7 @@ const de_DescribeListenerAttributesOutput = ( context: __SerdeContext ): DescribeListenerAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_ListenerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -6481,7 +6481,7 @@ const de_DescribeListenerCertificatesOutput = ( context: __SerdeContext ): DescribeListenerCertificatesOutput => { const contents: any = {}; - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); @@ -6497,7 +6497,7 @@ const de_DescribeListenerCertificatesOutput = ( */ const de_DescribeListenersOutput = (output: any, context: __SerdeContext): DescribeListenersOutput => { const contents: any = {}; - if (output.Listeners === "") { + if (String(output.Listeners).trim() === "") { contents[_L] = []; } else if (output[_L] != null && output[_L][_m] != null) { contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); @@ -6516,7 +6516,7 @@ const de_DescribeLoadBalancerAttributesOutput = ( context: __SerdeContext ): DescribeLoadBalancerAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_LoadBalancerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -6529,7 +6529,7 @@ const de_DescribeLoadBalancerAttributesOutput = ( */ const de_DescribeLoadBalancersOutput = (output: any, context: __SerdeContext): DescribeLoadBalancersOutput => { const contents: any = {}; - if (output.LoadBalancers === "") { + if (String(output.LoadBalancers).trim() === "") { contents[_LB] = []; } else if (output[_LB] != null && output[_LB][_m] != null) { contents[_LB] = de_LoadBalancers(__getArrayIfSingleItem(output[_LB][_m]), context); @@ -6545,7 +6545,7 @@ const de_DescribeLoadBalancersOutput = (output: any, context: __SerdeContext): D */ const de_DescribeRulesOutput = (output: any, context: __SerdeContext): DescribeRulesOutput => { const contents: any = {}; - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Ru] = []; } else if (output[_Ru] != null && output[_Ru][_m] != null) { contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); @@ -6561,7 +6561,7 @@ const de_DescribeRulesOutput = (output: any, context: __SerdeContext): DescribeR */ const de_DescribeSSLPoliciesOutput = (output: any, context: __SerdeContext): DescribeSSLPoliciesOutput => { const contents: any = {}; - if (output.SslPolicies === "") { + if (String(output.SslPolicies).trim() === "") { contents[_SPs] = []; } else if (output[_SPs] != null && output[_SPs][_m] != null) { contents[_SPs] = de_SslPolicies(__getArrayIfSingleItem(output[_SPs][_m]), context); @@ -6577,7 +6577,7 @@ const de_DescribeSSLPoliciesOutput = (output: any, context: __SerdeContext): Des */ const de_DescribeTagsOutput = (output: any, context: __SerdeContext): DescribeTagsOutput => { const contents: any = {}; - if (output.TagDescriptions === "") { + if (String(output.TagDescriptions).trim() === "") { contents[_TD] = []; } else if (output[_TD] != null && output[_TD][_m] != null) { contents[_TD] = de_TagDescriptions(__getArrayIfSingleItem(output[_TD][_m]), context); @@ -6593,7 +6593,7 @@ const de_DescribeTargetGroupAttributesOutput = ( context: __SerdeContext ): DescribeTargetGroupAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_TargetGroupAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -6606,7 +6606,7 @@ const de_DescribeTargetGroupAttributesOutput = ( */ const de_DescribeTargetGroupsOutput = (output: any, context: __SerdeContext): DescribeTargetGroupsOutput => { const contents: any = {}; - if (output.TargetGroups === "") { + if (String(output.TargetGroups).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_m] != null) { contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); @@ -6622,7 +6622,7 @@ const de_DescribeTargetGroupsOutput = (output: any, context: __SerdeContext): De */ const de_DescribeTargetHealthOutput = (output: any, context: __SerdeContext): DescribeTargetHealthOutput => { const contents: any = {}; - if (output.TargetHealthDescriptions === "") { + if (String(output.TargetHealthDescriptions).trim() === "") { contents[_THD] = []; } else if (output[_THD] != null && output[_THD][_m] != null) { contents[_THD] = de_TargetHealthDescriptions(__getArrayIfSingleItem(output[_THD][_m]), context); @@ -6638,7 +6638,7 @@ const de_DescribeTrustStoreAssociationsOutput = ( context: __SerdeContext ): DescribeTrustStoreAssociationsOutput => { const contents: any = {}; - if (output.TrustStoreAssociations === "") { + if (String(output.TrustStoreAssociations).trim() === "") { contents[_TSAru] = []; } else if (output[_TSAru] != null && output[_TSAru][_m] != null) { contents[_TSAru] = de_TrustStoreAssociations(__getArrayIfSingleItem(output[_TSAru][_m]), context); @@ -6691,7 +6691,7 @@ const de_DescribeTrustStoreRevocationsOutput = ( context: __SerdeContext ): DescribeTrustStoreRevocationsOutput => { const contents: any = {}; - if (output.TrustStoreRevocations === "") { + if (String(output.TrustStoreRevocations).trim() === "") { contents[_TSR] = []; } else if (output[_TSR] != null && output[_TSR][_m] != null) { contents[_TSR] = de_DescribeTrustStoreRevocationResponse(__getArrayIfSingleItem(output[_TSR][_m]), context); @@ -6707,7 +6707,7 @@ const de_DescribeTrustStoreRevocationsOutput = ( */ const de_DescribeTrustStoresOutput = (output: any, context: __SerdeContext): DescribeTrustStoresOutput => { const contents: any = {}; - if (output.TrustStores === "") { + if (String(output.TrustStores).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_m] != null) { contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); @@ -6804,7 +6804,7 @@ const de_FixedResponseActionConfig = (output: any, context: __SerdeContext): Fix */ const de_ForwardActionConfig = (output: any, context: __SerdeContext): ForwardActionConfig => { const contents: any = {}; - if (output.TargetGroups === "") { + if (String(output.TargetGroups).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_m] != null) { contents[_TG] = de_TargetGroupList(__getArrayIfSingleItem(output[_TG][_m]), context); @@ -6870,7 +6870,7 @@ const de_HealthUnavailableException = (output: any, context: __SerdeContext): He */ const de_HostHeaderConditionConfig = (output: any, context: __SerdeContext): HostHeaderConditionConfig => { const contents: any = {}; - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -6886,7 +6886,7 @@ const de_HttpHeaderConditionConfig = (output: any, context: __SerdeContext): Htt if (output[_HHN] != null) { contents[_HHN] = __expectString(output[_HHN]); } - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -6902,7 +6902,7 @@ const de_HttpRequestMethodConditionConfig = ( context: __SerdeContext ): HttpRequestMethodConditionConfig => { const contents: any = {}; - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -7085,7 +7085,7 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_C] = []; } else if (output[_C] != null && output[_C][_m] != null) { contents[_C] = de_CertificateList(__getArrayIfSingleItem(output[_C][_m]), context); @@ -7093,12 +7093,12 @@ const de_Listener = (output: any, context: __SerdeContext): Listener => { if (output[_SP] != null) { contents[_SP] = __expectString(output[_SP]); } - if (output.DefaultActions === "") { + if (String(output.DefaultActions).trim() === "") { contents[_DA] = []; } else if (output[_DA] != null && output[_DA][_m] != null) { contents[_DA] = de_Actions(__getArrayIfSingleItem(output[_DA][_m]), context); } - if (output.AlpnPolicy === "") { + if (String(output.AlpnPolicy).trim() === "") { contents[_AP] = []; } else if (output[_AP] != null && output[_AP][_m] != null) { contents[_AP] = de_AlpnPolicyName(__getArrayIfSingleItem(output[_AP][_m]), context); @@ -7199,12 +7199,12 @@ const de_LoadBalancer = (output: any, context: __SerdeContext): LoadBalancer => if (output[_T] != null) { contents[_T] = __expectString(output[_T]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZv] = []; } else if (output[_AZv] != null && output[_AZv][_m] != null) { contents[_AZv] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZv][_m]), context); } - if (output.SecurityGroups === "") { + if (String(output.SecurityGroups).trim() === "") { contents[_SG] = []; } else if (output[_SG] != null && output[_SG][_m] != null) { contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); @@ -7369,7 +7369,7 @@ const de_ModifyCapacityReservationOutput = (output: any, context: __SerdeContext if (output[_MLBC] != null) { contents[_MLBC] = de_MinimumLoadBalancerCapacity(output[_MLBC], context); } - if (output.CapacityReservationState === "") { + if (String(output.CapacityReservationState).trim() === "") { contents[_CRS] = []; } else if (output[_CRS] != null && output[_CRS][_m] != null) { contents[_CRS] = de_ZonalCapacityReservationStates(__getArrayIfSingleItem(output[_CRS][_m]), context); @@ -7393,7 +7393,7 @@ const de_ModifyIpPoolsOutput = (output: any, context: __SerdeContext): ModifyIpP */ const de_ModifyListenerAttributesOutput = (output: any, context: __SerdeContext): ModifyListenerAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_ListenerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -7406,7 +7406,7 @@ const de_ModifyListenerAttributesOutput = (output: any, context: __SerdeContext) */ const de_ModifyListenerOutput = (output: any, context: __SerdeContext): ModifyListenerOutput => { const contents: any = {}; - if (output.Listeners === "") { + if (String(output.Listeners).trim() === "") { contents[_L] = []; } else if (output[_L] != null && output[_L][_m] != null) { contents[_L] = de_Listeners(__getArrayIfSingleItem(output[_L][_m]), context); @@ -7422,7 +7422,7 @@ const de_ModifyLoadBalancerAttributesOutput = ( context: __SerdeContext ): ModifyLoadBalancerAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_LoadBalancerAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -7435,7 +7435,7 @@ const de_ModifyLoadBalancerAttributesOutput = ( */ const de_ModifyRuleOutput = (output: any, context: __SerdeContext): ModifyRuleOutput => { const contents: any = {}; - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Ru] = []; } else if (output[_Ru] != null && output[_Ru][_m] != null) { contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); @@ -7451,7 +7451,7 @@ const de_ModifyTargetGroupAttributesOutput = ( context: __SerdeContext ): ModifyTargetGroupAttributesOutput => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = []; } else if (output[_At] != null && output[_At][_m] != null) { contents[_At] = de_TargetGroupAttributes(__getArrayIfSingleItem(output[_At][_m]), context); @@ -7464,7 +7464,7 @@ const de_ModifyTargetGroupAttributesOutput = ( */ const de_ModifyTargetGroupOutput = (output: any, context: __SerdeContext): ModifyTargetGroupOutput => { const contents: any = {}; - if (output.TargetGroups === "") { + if (String(output.TargetGroups).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_m] != null) { contents[_TG] = de_TargetGroups(__getArrayIfSingleItem(output[_TG][_m]), context); @@ -7477,7 +7477,7 @@ const de_ModifyTargetGroupOutput = (output: any, context: __SerdeContext): Modif */ const de_ModifyTrustStoreOutput = (output: any, context: __SerdeContext): ModifyTrustStoreOutput => { const contents: any = {}; - if (output.TrustStores === "") { + if (String(output.TrustStores).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_m] != null) { contents[_TS] = de_TrustStores(__getArrayIfSingleItem(output[_TS][_m]), context); @@ -7524,7 +7524,7 @@ const de_OperationNotPermittedException = (output: any, context: __SerdeContext) */ const de_PathPatternConditionConfig = (output: any, context: __SerdeContext): PathPatternConditionConfig => { const contents: any = {}; - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -7562,7 +7562,7 @@ const de_PriorRequestNotCompleteException = ( */ const de_QueryStringConditionConfig = (output: any, context: __SerdeContext): QueryStringConditionConfig => { const contents: any = {}; - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_QueryStringKeyValuePairList(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -7717,12 +7717,12 @@ const de_Rule = (output: any, context: __SerdeContext): Rule => { if (output[_Pr] != null) { contents[_Pr] = __expectString(output[_Pr]); } - if (output.Conditions === "") { + if (String(output.Conditions).trim() === "") { contents[_Co] = []; } else if (output[_Co] != null && output[_Co][_m] != null) { contents[_Co] = de_RuleConditionList(__getArrayIfSingleItem(output[_Co][_m]), context); } - if (output.Actions === "") { + if (String(output.Actions).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_m] != null) { contents[_Ac] = de_Actions(__getArrayIfSingleItem(output[_Ac][_m]), context); @@ -7741,7 +7741,7 @@ const de_RuleCondition = (output: any, context: __SerdeContext): RuleCondition = if (output[_F] != null) { contents[_F] = __expectString(output[_F]); } - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -7827,7 +7827,7 @@ const de_SetIpAddressTypeOutput = (output: any, context: __SerdeContext): SetIpA */ const de_SetRulePrioritiesOutput = (output: any, context: __SerdeContext): SetRulePrioritiesOutput => { const contents: any = {}; - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Ru] = []; } else if (output[_Ru] != null && output[_Ru][_m] != null) { contents[_Ru] = de_Rules(__getArrayIfSingleItem(output[_Ru][_m]), context); @@ -7840,7 +7840,7 @@ const de_SetRulePrioritiesOutput = (output: any, context: __SerdeContext): SetRu */ const de_SetSecurityGroupsOutput = (output: any, context: __SerdeContext): SetSecurityGroupsOutput => { const contents: any = {}; - if (output.SecurityGroupIds === "") { + if (String(output.SecurityGroupIds).trim() === "") { contents[_SGI] = []; } else if (output[_SGI] != null && output[_SGI][_m] != null) { contents[_SGI] = de_SecurityGroups(__getArrayIfSingleItem(output[_SGI][_m]), context); @@ -7856,7 +7856,7 @@ const de_SetSecurityGroupsOutput = (output: any, context: __SerdeContext): SetSe */ const de_SetSubnetsOutput = (output: any, context: __SerdeContext): SetSubnetsOutput => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZv] = []; } else if (output[_AZv] != null && output[_AZv][_m] != null) { contents[_AZv] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZv][_m]), context); @@ -7875,7 +7875,7 @@ const de_SetSubnetsOutput = (output: any, context: __SerdeContext): SetSubnetsOu */ const de_SourceIpConditionConfig = (output: any, context: __SerdeContext): SourceIpConditionConfig => { const contents: any = {}; - if (output.Values === "") { + if (String(output.Values).trim() === "") { contents[_Va] = []; } else if (output[_Va] != null && output[_Va][_m] != null) { contents[_Va] = de_ListOfString(__getArrayIfSingleItem(output[_Va][_m]), context); @@ -7910,12 +7910,12 @@ const de_SslPolicies = (output: any, context: __SerdeContext): SslPolicy[] => { */ const de_SslPolicy = (output: any, context: __SerdeContext): SslPolicy => { const contents: any = {}; - if (output.SslProtocols === "") { + if (String(output.SslProtocols).trim() === "") { contents[_SPsl] = []; } else if (output[_SPsl] != null && output[_SPsl][_m] != null) { contents[_SPsl] = de_SslProtocols(__getArrayIfSingleItem(output[_SPsl][_m]), context); } - if (output.Ciphers === "") { + if (String(output.Ciphers).trim() === "") { contents[_Ci] = []; } else if (output[_Ci] != null && output[_Ci][_m] != null) { contents[_Ci] = de_Ciphers(__getArrayIfSingleItem(output[_Ci][_m]), context); @@ -7923,7 +7923,7 @@ const de_SslPolicy = (output: any, context: __SerdeContext): SslPolicy => { if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.SupportedLoadBalancerTypes === "") { + if (String(output.SupportedLoadBalancerTypes).trim() === "") { contents[_SLBT] = []; } else if (output[_SLBT] != null && output[_SLBT][_m] != null) { contents[_SLBT] = de_ListOfString(__getArrayIfSingleItem(output[_SLBT][_m]), context); @@ -7986,7 +7986,7 @@ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription if (output[_RAe] != null) { contents[_RAe] = __expectString(output[_RAe]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_m] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_m]), context); @@ -8080,7 +8080,7 @@ const de_TargetGroup = (output: any, context: __SerdeContext): TargetGroup => { if (output[_M] != null) { contents[_M] = de_Matcher(output[_M], context); } - if (output.LoadBalancerArns === "") { + if (String(output.LoadBalancerArns).trim() === "") { contents[_LBAo] = []; } else if (output[_LBAo] != null && output[_LBAo][_m] != null) { contents[_LBAo] = de_LoadBalancerArns(__getArrayIfSingleItem(output[_LBAo][_m]), context); diff --git a/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts b/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts index 04fe42cf215c..88a97f589a87 100644 --- a/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts +++ b/clients/client-elastic-load-balancing/src/protocols/Aws_query.ts @@ -2892,7 +2892,7 @@ const de_AccessPointNotFoundException = (output: any, context: __SerdeContext): */ const de_AddAvailabilityZonesOutput = (output: any, context: __SerdeContext): AddAvailabilityZonesOutput => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_m] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); @@ -2966,7 +2966,7 @@ const de_ApplySecurityGroupsToLoadBalancerOutput = ( context: __SerdeContext ): ApplySecurityGroupsToLoadBalancerOutput => { const contents: any = {}; - if (output.SecurityGroups === "") { + if (String(output.SecurityGroups).trim() === "") { contents[_SG] = []; } else if (output[_SG] != null && output[_SG][_m] != null) { contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); @@ -2982,7 +2982,7 @@ const de_AttachLoadBalancerToSubnetsOutput = ( context: __SerdeContext ): AttachLoadBalancerToSubnetsOutput => { const contents: any = {}; - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_S] = []; } else if (output[_S] != null && output[_S][_m] != null) { contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); @@ -3009,7 +3009,7 @@ const de_BackendServerDescription = (output: any, context: __SerdeContext): Back if (output[_IPn] != null) { contents[_IPn] = __strictParseInt32(output[_IPn]) as number; } - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_m] != null) { contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context); @@ -3181,7 +3181,7 @@ const de_DependencyThrottleException = (output: any, context: __SerdeContext): D */ const de_DeregisterEndPointsOutput = (output: any, context: __SerdeContext): DeregisterEndPointsOutput => { const contents: any = {}; - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_I] = []; } else if (output[_I] != null && output[_I][_m] != null) { contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); @@ -3194,7 +3194,7 @@ const de_DeregisterEndPointsOutput = (output: any, context: __SerdeContext): Der */ const de_DescribeAccessPointsOutput = (output: any, context: __SerdeContext): DescribeAccessPointsOutput => { const contents: any = {}; - if (output.LoadBalancerDescriptions === "") { + if (String(output.LoadBalancerDescriptions).trim() === "") { contents[_LBD] = []; } else if (output[_LBD] != null && output[_LBD][_m] != null) { contents[_LBD] = de_LoadBalancerDescriptions(__getArrayIfSingleItem(output[_LBD][_m]), context); @@ -3210,7 +3210,7 @@ const de_DescribeAccessPointsOutput = (output: any, context: __SerdeContext): De */ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): DescribeAccountLimitsOutput => { const contents: any = {}; - if (output.Limits === "") { + if (String(output.Limits).trim() === "") { contents[_Li] = []; } else if (output[_Li] != null && output[_Li][_m] != null) { contents[_Li] = de_Limits(__getArrayIfSingleItem(output[_Li][_m]), context); @@ -3226,7 +3226,7 @@ const de_DescribeAccountLimitsOutput = (output: any, context: __SerdeContext): D */ const de_DescribeEndPointStateOutput = (output: any, context: __SerdeContext): DescribeEndPointStateOutput => { const contents: any = {}; - if (output.InstanceStates === "") { + if (String(output.InstanceStates).trim() === "") { contents[_IS] = []; } else if (output[_IS] != null && output[_IS][_m] != null) { contents[_IS] = de_InstanceStates(__getArrayIfSingleItem(output[_IS][_m]), context); @@ -3256,7 +3256,7 @@ const de_DescribeLoadBalancerPoliciesOutput = ( context: __SerdeContext ): DescribeLoadBalancerPoliciesOutput => { const contents: any = {}; - if (output.PolicyDescriptions === "") { + if (String(output.PolicyDescriptions).trim() === "") { contents[_PD] = []; } else if (output[_PD] != null && output[_PD][_m] != null) { contents[_PD] = de_PolicyDescriptions(__getArrayIfSingleItem(output[_PD][_m]), context); @@ -3272,7 +3272,7 @@ const de_DescribeLoadBalancerPolicyTypesOutput = ( context: __SerdeContext ): DescribeLoadBalancerPolicyTypesOutput => { const contents: any = {}; - if (output.PolicyTypeDescriptions === "") { + if (String(output.PolicyTypeDescriptions).trim() === "") { contents[_PTD] = []; } else if (output[_PTD] != null && output[_PTD][_m] != null) { contents[_PTD] = de_PolicyTypeDescriptions(__getArrayIfSingleItem(output[_PTD][_m]), context); @@ -3285,7 +3285,7 @@ const de_DescribeLoadBalancerPolicyTypesOutput = ( */ const de_DescribeTagsOutput = (output: any, context: __SerdeContext): DescribeTagsOutput => { const contents: any = {}; - if (output.TagDescriptions === "") { + if (String(output.TagDescriptions).trim() === "") { contents[_TD] = []; } else if (output[_TD] != null && output[_TD][_m] != null) { contents[_TD] = de_TagDescriptions(__getArrayIfSingleItem(output[_TD][_m]), context); @@ -3301,7 +3301,7 @@ const de_DetachLoadBalancerFromSubnetsOutput = ( context: __SerdeContext ): DetachLoadBalancerFromSubnetsOutput => { const contents: any = {}; - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_S] = []; } else if (output[_S] != null && output[_S][_m] != null) { contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); @@ -3571,7 +3571,7 @@ const de_ListenerDescription = (output: any, context: __SerdeContext): ListenerD if (output[_Lis] != null) { contents[_Lis] = de_Listener(output[_Lis], context); } - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_m] != null) { contents[_PNo] = de_PolicyNames(__getArrayIfSingleItem(output[_PNo][_m]), context); @@ -3632,7 +3632,7 @@ const de_LoadBalancerAttributes = (output: any, context: __SerdeContext): LoadBa if (output[_CS] != null) { contents[_CS] = de_ConnectionSettings(output[_CS], context); } - if (output.AdditionalAttributes === "") { + if (String(output.AdditionalAttributes).trim() === "") { contents[_AA] = []; } else if (output[_AA] != null && output[_AA][_m] != null) { contents[_AA] = de_AdditionalAttributes(__getArrayIfSingleItem(output[_AA][_m]), context); @@ -3657,7 +3657,7 @@ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadB if (output[_CHZNID] != null) { contents[_CHZNID] = __expectString(output[_CHZNID]); } - if (output.ListenerDescriptions === "") { + if (String(output.ListenerDescriptions).trim() === "") { contents[_LD] = []; } else if (output[_LD] != null && output[_LD][_m] != null) { contents[_LD] = de_ListenerDescriptions(__getArrayIfSingleItem(output[_LD][_m]), context); @@ -3665,17 +3665,17 @@ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadB if (output[_Po] != null) { contents[_Po] = de_Policies(output[_Po], context); } - if (output.BackendServerDescriptions === "") { + if (String(output.BackendServerDescriptions).trim() === "") { contents[_BSD] = []; } else if (output[_BSD] != null && output[_BSD][_m] != null) { contents[_BSD] = de_BackendServerDescriptions(__getArrayIfSingleItem(output[_BSD][_m]), context); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_m] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_S] = []; } else if (output[_S] != null && output[_S][_m] != null) { contents[_S] = de_Subnets(__getArrayIfSingleItem(output[_S][_m]), context); @@ -3683,7 +3683,7 @@ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadB if (output[_VPCI] != null) { contents[_VPCI] = __expectString(output[_VPCI]); } - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_I] = []; } else if (output[_I] != null && output[_I][_m] != null) { contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); @@ -3694,7 +3694,7 @@ const de_LoadBalancerDescription = (output: any, context: __SerdeContext): LoadB if (output[_SSG] != null) { contents[_SSG] = de_SourceSecurityGroup(output[_SSG], context); } - if (output.SecurityGroups === "") { + if (String(output.SecurityGroups).trim() === "") { contents[_SG] = []; } else if (output[_SG] != null && output[_SG][_m] != null) { contents[_SG] = de_SecurityGroups(__getArrayIfSingleItem(output[_SG][_m]), context); @@ -3752,17 +3752,17 @@ const de_OperationNotPermittedException = (output: any, context: __SerdeContext) */ const de_Policies = (output: any, context: __SerdeContext): Policies => { const contents: any = {}; - if (output.AppCookieStickinessPolicies === "") { + if (String(output.AppCookieStickinessPolicies).trim() === "") { contents[_ACSP] = []; } else if (output[_ACSP] != null && output[_ACSP][_m] != null) { contents[_ACSP] = de_AppCookieStickinessPolicies(__getArrayIfSingleItem(output[_ACSP][_m]), context); } - if (output.LBCookieStickinessPolicies === "") { + if (String(output.LBCookieStickinessPolicies).trim() === "") { contents[_LBCSP] = []; } else if (output[_LBCSP] != null && output[_LBCSP][_m] != null) { contents[_LBCSP] = de_LBCookieStickinessPolicies(__getArrayIfSingleItem(output[_LBCSP][_m]), context); } - if (output.OtherPolicies === "") { + if (String(output.OtherPolicies).trim() === "") { contents[_OP] = []; } else if (output[_OP] != null && output[_OP][_m] != null) { contents[_OP] = de_PolicyNames(__getArrayIfSingleItem(output[_OP][_m]), context); @@ -3840,7 +3840,7 @@ const de_PolicyDescription = (output: any, context: __SerdeContext): PolicyDescr if (output[_PTN] != null) { contents[_PTN] = __expectString(output[_PTN]); } - if (output.PolicyAttributeDescriptions === "") { + if (String(output.PolicyAttributeDescriptions).trim() === "") { contents[_PAD] = []; } else if (output[_PAD] != null && output[_PAD][_m] != null) { contents[_PAD] = de_PolicyAttributeDescriptions(__getArrayIfSingleItem(output[_PAD][_m]), context); @@ -3892,7 +3892,7 @@ const de_PolicyTypeDescription = (output: any, context: __SerdeContext): PolicyT if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.PolicyAttributeTypeDescriptions === "") { + if (String(output.PolicyAttributeTypeDescriptions).trim() === "") { contents[_PATD] = []; } else if (output[_PATD] != null && output[_PATD][_m] != null) { contents[_PATD] = de_PolicyAttributeTypeDescriptions(__getArrayIfSingleItem(output[_PATD][_m]), context); @@ -3927,7 +3927,7 @@ const de_PolicyTypeNotFoundException = (output: any, context: __SerdeContext): P */ const de_RegisterEndPointsOutput = (output: any, context: __SerdeContext): RegisterEndPointsOutput => { const contents: any = {}; - if (output.Instances === "") { + if (String(output.Instances).trim() === "") { contents[_I] = []; } else if (output[_I] != null && output[_I][_m] != null) { contents[_I] = de_Instances(__getArrayIfSingleItem(output[_I][_m]), context); @@ -3940,7 +3940,7 @@ const de_RegisterEndPointsOutput = (output: any, context: __SerdeContext): Regis */ const de_RemoveAvailabilityZonesOutput = (output: any, context: __SerdeContext): RemoveAvailabilityZonesOutput => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_m] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_m]), context); @@ -4058,7 +4058,7 @@ const de_TagDescription = (output: any, context: __SerdeContext): TagDescription if (output[_LBN] != null) { contents[_LBN] = __expectString(output[_LBN]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_m] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_m]), context); diff --git a/clients/client-elasticache/src/protocols/Aws_query.ts b/clients/client-elasticache/src/protocols/Aws_query.ts index b4835f451180..4f0b417fdb70 100644 --- a/clients/client-elasticache/src/protocols/Aws_query.ts +++ b/clients/client-elasticache/src/protocols/Aws_query.ts @@ -8080,12 +8080,12 @@ const de_AllowedNodeTypeModificationsMessage = ( context: __SerdeContext ): AllowedNodeTypeModificationsMessage => { const contents: any = {}; - if (output.ScaleUpModifications === "") { + if (String(output.ScaleUpModifications).trim() === "") { contents[_SUM] = []; } else if (output[_SUM] != null && output[_SUM][_m] != null) { contents[_SUM] = de_NodeTypeList(__getArrayIfSingleItem(output[_SUM][_m]), context); } - if (output.ScaleDownModifications === "") { + if (String(output.ScaleDownModifications).trim() === "") { contents[_SDM] = []; } else if (output[_SDM] != null && output[_SDM][_m] != null) { contents[_SDM] = de_NodeTypeList(__getArrayIfSingleItem(output[_SDM][_m]), context); @@ -8226,7 +8226,7 @@ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => if (output[_NC] != null) { contents[_NC] = de_NotificationConfiguration(output[_NC], context); } - if (output.CacheSecurityGroups === "") { + if (String(output.CacheSecurityGroups).trim() === "") { contents[_CSGa] = []; } else if (output[_CSGa] != null && output[_CSGa][_CSG] != null) { contents[_CSGa] = de_CacheSecurityGroupMembershipList(__getArrayIfSingleItem(output[_CSGa][_CSG]), context); @@ -8237,7 +8237,7 @@ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => if (output[_CSGNa] != null) { contents[_CSGNa] = __expectString(output[_CSGNa]); } - if (output.CacheNodes === "") { + if (String(output.CacheNodes).trim() === "") { contents[_CN] = []; } else if (output[_CN] != null && output[_CN][_CNa] != null) { contents[_CN] = de_CacheNodeList(__getArrayIfSingleItem(output[_CN][_CNa]), context); @@ -8245,7 +8245,7 @@ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => if (output[_AMVU] != null) { contents[_AMVU] = __parseBoolean(output[_AMVU]); } - if (output.SecurityGroups === "") { + if (String(output.SecurityGroups).trim() === "") { contents[_SG] = []; } else if (output[_SG] != null && output[_SG][_m] != null) { contents[_SG] = de_SecurityGroupMembershipList(__getArrayIfSingleItem(output[_SG][_m]), context); @@ -8277,7 +8277,7 @@ const de_CacheCluster = (output: any, context: __SerdeContext): CacheCluster => if (output[_RGLDE] != null) { contents[_RGLDE] = __parseBoolean(output[_RGLDE]); } - if (output.LogDeliveryConfigurations === "") { + if (String(output.LogDeliveryConfigurations).trim() === "") { contents[_LDC] = []; } else if (output[_LDC] != null && output[_LDC][_LDCo] != null) { contents[_LDC] = de_LogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_LDCo]), context); @@ -8324,7 +8324,7 @@ const de_CacheClusterMessage = (output: any, context: __SerdeContext): CacheClus if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.CacheClusters === "") { + if (String(output.CacheClusters).trim() === "") { contents[_CC] = []; } else if (output[_CC] != null && output[_CC][_CCa] != null) { contents[_CC] = de_CacheClusterList(__getArrayIfSingleItem(output[_CC][_CCa]), context); @@ -8385,7 +8385,7 @@ const de_CacheEngineVersionMessage = (output: any, context: __SerdeContext): Cac if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.CacheEngineVersions === "") { + if (String(output.CacheEngineVersions).trim() === "") { contents[_CEV] = []; } else if (output[_CEV] != null && output[_CEV][_CEVa] != null) { contents[_CEV] = de_CacheEngineVersionList(__getArrayIfSingleItem(output[_CEV][_CEVa]), context); @@ -8473,7 +8473,7 @@ const de_CacheNodeTypeSpecificParameter = (output: any, context: __SerdeContext) if (output[_MEVi] != null) { contents[_MEVi] = __expectString(output[_MEVi]); } - if (output.CacheNodeTypeSpecificValues === "") { + if (String(output.CacheNodeTypeSpecificValues).trim() === "") { contents[_CNTSV] = []; } else if (output[_CNTSV] != null && output[_CNTSV][_CNTSVa] != null) { contents[_CNTSV] = de_CacheNodeTypeSpecificValueList(__getArrayIfSingleItem(output[_CNTSV][_CNTSVa]), context); @@ -8611,12 +8611,12 @@ const de_CacheParameterGroupDetails = (output: any, context: __SerdeContext): Ca if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output.CacheNodeTypeSpecificParameters === "") { + if (String(output.CacheNodeTypeSpecificParameters).trim() === "") { contents[_CNTSP] = []; } else if (output[_CNTSP] != null && output[_CNTSP][_CNTSPa] != null) { contents[_CNTSP] = de_CacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output[_CNTSP][_CNTSPa]), context); @@ -8682,7 +8682,7 @@ const de_CacheParameterGroupsMessage = (output: any, context: __SerdeContext): C if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.CacheParameterGroups === "") { + if (String(output.CacheParameterGroups).trim() === "") { contents[_CPGa] = []; } else if (output[_CPGa] != null && output[_CPGa][_CPG] != null) { contents[_CPGa] = de_CacheParameterGroupList(__getArrayIfSingleItem(output[_CPGa][_CPG]), context); @@ -8701,7 +8701,7 @@ const de_CacheParameterGroupStatus = (output: any, context: __SerdeContext): Cac if (output[_PAS] != null) { contents[_PAS] = __expectString(output[_PAS]); } - if (output.CacheNodeIdsToReboot === "") { + if (String(output.CacheNodeIdsToReboot).trim() === "") { contents[_CNITRa] = []; } else if (output[_CNITRa] != null && output[_CNITRa][_CNI] != null) { contents[_CNITRa] = de_CacheNodeIdsList(__getArrayIfSingleItem(output[_CNITRa][_CNI]), context); @@ -8723,7 +8723,7 @@ const de_CacheSecurityGroup = (output: any, context: __SerdeContext): CacheSecur if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.EC2SecurityGroups === "") { + if (String(output.EC2SecurityGroups).trim() === "") { contents[_ECSG] = []; } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); @@ -8781,7 +8781,7 @@ const de_CacheSecurityGroupMessage = (output: any, context: __SerdeContext): Cac if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.CacheSecurityGroups === "") { + if (String(output.CacheSecurityGroups).trim() === "") { contents[_CSGa] = []; } else if (output[_CSGa] != null && output[_CSGa][_CSG] != null) { contents[_CSGa] = de_CacheSecurityGroups(__getArrayIfSingleItem(output[_CSGa][_CSG]), context); @@ -8839,7 +8839,7 @@ const de_CacheSubnetGroup = (output: any, context: __SerdeContext): CacheSubnetG if (output[_VI] != null) { contents[_VI] = __expectString(output[_VI]); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_Sub] != null) { contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); @@ -8847,7 +8847,7 @@ const de_CacheSubnetGroup = (output: any, context: __SerdeContext): CacheSubnetG if (output[_ARN] != null) { contents[_ARN] = __expectString(output[_ARN]); } - if (output.SupportedNetworkTypes === "") { + if (String(output.SupportedNetworkTypes).trim() === "") { contents[_SNT] = []; } else if (output[_SNT] != null && output[_SNT][_m] != null) { contents[_SNT] = de_NetworkTypeList(__getArrayIfSingleItem(output[_SNT][_m]), context); @@ -8888,7 +8888,7 @@ const de_CacheSubnetGroupMessage = (output: any, context: __SerdeContext): Cache if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.CacheSubnetGroups === "") { + if (String(output.CacheSubnetGroups).trim() === "") { contents[_CSGac] = []; } else if (output[_CSGac] != null && output[_CSGac][_CSGach] != null) { contents[_CSGac] = de_CacheSubnetGroups(__getArrayIfSingleItem(output[_CSGac][_CSGach]), context); @@ -9301,7 +9301,7 @@ const de_DescribeGlobalReplicationGroupsResult = ( if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.GlobalReplicationGroups === "") { + if (String(output.GlobalReplicationGroups).trim() === "") { contents[_GRGl] = []; } else if (output[_GRGl] != null && output[_GRGl][_GRG] != null) { contents[_GRGl] = de_GlobalReplicationGroupList(__getArrayIfSingleItem(output[_GRGl][_GRG]), context); @@ -9320,7 +9320,7 @@ const de_DescribeServerlessCacheSnapshotsResponse = ( if (output[_NTe] != null) { contents[_NTe] = __expectString(output[_NTe]); } - if (output.ServerlessCacheSnapshots === "") { + if (String(output.ServerlessCacheSnapshots).trim() === "") { contents[_SCSe] = []; } else if (output[_SCSe] != null && output[_SCSe][_SCS] != null) { contents[_SCSe] = de_ServerlessCacheSnapshotList(__getArrayIfSingleItem(output[_SCSe][_SCS]), context); @@ -9339,7 +9339,7 @@ const de_DescribeServerlessCachesResponse = ( if (output[_NTe] != null) { contents[_NTe] = __expectString(output[_NTe]); } - if (output.ServerlessCaches === "") { + if (String(output.ServerlessCaches).trim() === "") { contents[_SCer] = []; } else if (output[_SCer] != null && output[_SCer][_m] != null) { contents[_SCer] = de_ServerlessCacheList(__getArrayIfSingleItem(output[_SCer][_m]), context); @@ -9355,7 +9355,7 @@ const de_DescribeSnapshotsListMessage = (output: any, context: __SerdeContext): if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Snapshots === "") { + if (String(output.Snapshots).trim() === "") { contents[_Sna] = []; } else if (output[_Sna] != null && output[_Sna][_Sn] != null) { contents[_Sna] = de_SnapshotList(__getArrayIfSingleItem(output[_Sna][_Sn]), context); @@ -9368,7 +9368,7 @@ const de_DescribeSnapshotsListMessage = (output: any, context: __SerdeContext): */ const de_DescribeUserGroupsResult = (output: any, context: __SerdeContext): DescribeUserGroupsResult => { const contents: any = {}; - if (output.UserGroups === "") { + if (String(output.UserGroups).trim() === "") { contents[_UG] = []; } else if (output[_UG] != null && output[_UG][_m] != null) { contents[_UG] = de_UserGroupList(__getArrayIfSingleItem(output[_UG][_m]), context); @@ -9384,7 +9384,7 @@ const de_DescribeUserGroupsResult = (output: any, context: __SerdeContext): Desc */ const de_DescribeUsersResult = (output: any, context: __SerdeContext): DescribeUsersResult => { const contents: any = {}; - if (output.Users === "") { + if (String(output.Users).trim() === "") { contents[_Us] = []; } else if (output[_Us] != null && output[_Us][_m] != null) { contents[_Us] = de_UserList(__getArrayIfSingleItem(output[_Us][_m]), context); @@ -9501,12 +9501,12 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); } - if (output.CacheNodeTypeSpecificParameters === "") { + if (String(output.CacheNodeTypeSpecificParameters).trim() === "") { contents[_CNTSP] = []; } else if (output[_CNTSP] != null && output[_CNTSP][_CNTSPa] != null) { contents[_CNTSP] = de_CacheNodeTypeSpecificParametersList(__getArrayIfSingleItem(output[_CNTSP][_CNTSPa]), context); @@ -9553,7 +9553,7 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); @@ -9637,7 +9637,7 @@ const de_GlobalReplicationGroup = (output: any, context: __SerdeContext): Global if (output[_EV] != null) { contents[_EV] = __expectString(output[_EV]); } - if (output.Members === "") { + if (String(output.Members).trim() === "") { contents[_Mem] = []; } else if (output[_Mem] != null && output[_Mem][_GRGM] != null) { contents[_Mem] = de_GlobalReplicationGroupMemberList(__getArrayIfSingleItem(output[_Mem][_GRGM]), context); @@ -9645,7 +9645,7 @@ const de_GlobalReplicationGroup = (output: any, context: __SerdeContext): Global if (output[_CEl] != null) { contents[_CEl] = __parseBoolean(output[_CEl]); } - if (output.GlobalNodeGroups === "") { + if (String(output.GlobalNodeGroups).trim() === "") { contents[_GNG] = []; } else if (output[_GNG] != null && output[_GNG][_GNGl] != null) { contents[_GNG] = de_GlobalNodeGroupList(__getArrayIfSingleItem(output[_GNG][_GNGl]), context); @@ -10153,7 +10153,7 @@ const de_NodeGroup = (output: any, context: __SerdeContext): NodeGroup => { if (output[_Sl] != null) { contents[_Sl] = __expectString(output[_Sl]); } - if (output.NodeGroupMembers === "") { + if (String(output.NodeGroupMembers).trim() === "") { contents[_NGM] = []; } else if (output[_NGM] != null && output[_NGM][_NGMo] != null) { contents[_NGM] = de_NodeGroupMemberList(__getArrayIfSingleItem(output[_NGM][_NGMo]), context); @@ -10178,7 +10178,7 @@ const de_NodeGroupConfiguration = (output: any, context: __SerdeContext): NodeGr if (output[_PAZri] != null) { contents[_PAZri] = __expectString(output[_PAZri]); } - if (output.ReplicaAvailabilityZones === "") { + if (String(output.ReplicaAvailabilityZones).trim() === "") { contents[_RAZ] = []; } else if (output[_RAZ] != null && output[_RAZ][_AZ] != null) { contents[_RAZ] = de_AvailabilityZonesList(__getArrayIfSingleItem(output[_RAZ][_AZ]), context); @@ -10186,7 +10186,7 @@ const de_NodeGroupConfiguration = (output: any, context: __SerdeContext): NodeGr if (output[_POAri] != null) { contents[_POAri] = __expectString(output[_POAri]); } - if (output.ReplicaOutpostArns === "") { + if (String(output.ReplicaOutpostArns).trim() === "") { contents[_ROA] = []; } else if (output[_ROA] != null && output[_ROA][_OA] != null) { contents[_ROA] = de_OutpostArnsList(__getArrayIfSingleItem(output[_ROA][_OA]), context); @@ -10321,7 +10321,7 @@ const de_NodeGroupUpdateStatus = (output: any, context: __SerdeContext): NodeGro if (output[_NGI] != null) { contents[_NGI] = __expectString(output[_NGI]); } - if (output.NodeGroupMemberUpdateStatus === "") { + if (String(output.NodeGroupMemberUpdateStatus).trim() === "") { contents[_NGMUS] = []; } else if (output[_NGMUS] != null && output[_NGMUS][_NGMUS] != null) { contents[_NGMUS] = de_NodeGroupMemberUpdateStatusList(__getArrayIfSingleItem(output[_NGMUS][_NGMUS]), context); @@ -10543,7 +10543,7 @@ const de_PendingModifiedValues = (output: any, context: __SerdeContext): Pending if (output[_NCN] != null) { contents[_NCN] = __strictParseInt32(output[_NCN]) as number; } - if (output.CacheNodeIdsToRemove === "") { + if (String(output.CacheNodeIdsToRemove).trim() === "") { contents[_CNITR] = []; } else if (output[_CNITR] != null && output[_CNITR][_CNI] != null) { contents[_CNITR] = de_CacheNodeIdsList(__getArrayIfSingleItem(output[_CNITR][_CNI]), context); @@ -10557,7 +10557,7 @@ const de_PendingModifiedValues = (output: any, context: __SerdeContext): Pending if (output[_ATS] != null) { contents[_ATS] = __expectString(output[_ATS]); } - if (output.LogDeliveryConfigurations === "") { + if (String(output.LogDeliveryConfigurations).trim() === "") { contents[_LDC] = []; } else if (output[_LDC] != null && output[_LDC][_m] != null) { contents[_LDC] = de_PendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_m]), context); @@ -10689,12 +10689,12 @@ const de_ReplicationGroup = (output: any, context: __SerdeContext): ReplicationG if (output[_PMV] != null) { contents[_PMV] = de_ReplicationGroupPendingModifiedValues(output[_PMV], context); } - if (output.MemberClusters === "") { + if (String(output.MemberClusters).trim() === "") { contents[_MC] = []; } else if (output[_MC] != null && output[_MC][_CI] != null) { contents[_MC] = de_ClusterIdList(__getArrayIfSingleItem(output[_MC][_CI]), context); } - if (output.NodeGroups === "") { + if (String(output.NodeGroups).trim() === "") { contents[_NG] = []; } else if (output[_NG] != null && output[_NG][_NGo] != null) { contents[_NG] = de_NodeGroupList(__getArrayIfSingleItem(output[_NG][_NGo]), context); @@ -10735,7 +10735,7 @@ const de_ReplicationGroup = (output: any, context: __SerdeContext): ReplicationG if (output[_AREE] != null) { contents[_AREE] = __parseBoolean(output[_AREE]); } - if (output.MemberClustersOutpostArns === "") { + if (String(output.MemberClustersOutpostArns).trim() === "") { contents[_MCOA] = []; } else if (output[_MCOA] != null && output[_MCOA][_RGOA] != null) { contents[_MCOA] = de_ReplicationGroupOutpostArnList(__getArrayIfSingleItem(output[_MCOA][_RGOA]), context); @@ -10746,12 +10746,12 @@ const de_ReplicationGroup = (output: any, context: __SerdeContext): ReplicationG if (output[_ARN] != null) { contents[_ARN] = __expectString(output[_ARN]); } - if (output.UserGroupIds === "") { + if (String(output.UserGroupIds).trim() === "") { contents[_UGI] = []; } else if (output[_UGI] != null && output[_UGI][_m] != null) { contents[_UGI] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGI][_m]), context); } - if (output.LogDeliveryConfigurations === "") { + if (String(output.LogDeliveryConfigurations).trim() === "") { contents[_LDC] = []; } else if (output[_LDC] != null && output[_LDC][_LDCo] != null) { contents[_LDC] = de_LogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_LDCo]), context); @@ -10830,7 +10830,7 @@ const de_ReplicationGroupMessage = (output: any, context: __SerdeContext): Repli if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ReplicationGroups === "") { + if (String(output.ReplicationGroups).trim() === "") { contents[_RGe] = []; } else if (output[_RGe] != null && output[_RGe][_RG] != null) { contents[_RGe] = de_ReplicationGroupList(__getArrayIfSingleItem(output[_RGe][_RG]), context); @@ -10897,7 +10897,7 @@ const de_ReplicationGroupPendingModifiedValues = ( if (output[_UG] != null) { contents[_UG] = de_UserGroupsUpdateStatus(output[_UG], context); } - if (output.LogDeliveryConfigurations === "") { + if (String(output.LogDeliveryConfigurations).trim() === "") { contents[_LDC] = []; } else if (output[_LDC] != null && output[_LDC][_m] != null) { contents[_LDC] = de_PendingLogDeliveryConfigurationList(__getArrayIfSingleItem(output[_LDC][_m]), context); @@ -10952,7 +10952,7 @@ const de_ReservedCacheNode = (output: any, context: __SerdeContext): ReservedCac if (output[_Sta] != null) { contents[_Sta] = __expectString(output[_Sta]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); @@ -10996,7 +10996,7 @@ const de_ReservedCacheNodeMessage = (output: any, context: __SerdeContext): Rese if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ReservedCacheNodes === "") { + if (String(output.ReservedCacheNodes).trim() === "") { contents[_RCNe] = []; } else if (output[_RCNe] != null && output[_RCNe][_RCN] != null) { contents[_RCNe] = de_ReservedCacheNodeList(__getArrayIfSingleItem(output[_RCNe][_RCN]), context); @@ -11055,7 +11055,7 @@ const de_ReservedCacheNodesOffering = (output: any, context: __SerdeContext): Re if (output[_OT] != null) { contents[_OT] = __expectString(output[_OT]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); @@ -11085,7 +11085,7 @@ const de_ReservedCacheNodesOfferingMessage = ( if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ReservedCacheNodesOfferings === "") { + if (String(output.ReservedCacheNodesOfferings).trim() === "") { contents[_RCNO] = []; } else if (output[_RCNO] != null && output[_RCNO][_RCNOe] != null) { contents[_RCNO] = de_ReservedCacheNodesOfferingList(__getArrayIfSingleItem(output[_RCNO][_RCNOe]), context); @@ -11214,7 +11214,7 @@ const de_ServerlessCache = (output: any, context: __SerdeContext): ServerlessCac if (output[_KKI] != null) { contents[_KKI] = __expectString(output[_KKI]); } - if (output.SecurityGroupIds === "") { + if (String(output.SecurityGroupIds).trim() === "") { contents[_SGI] = []; } else if (output[_SGI] != null && output[_SGI][_SGIe] != null) { contents[_SGI] = de_SecurityGroupIdsList(__getArrayIfSingleItem(output[_SGI][_SGIe]), context); @@ -11231,7 +11231,7 @@ const de_ServerlessCache = (output: any, context: __SerdeContext): ServerlessCac if (output[_UGIs] != null) { contents[_UGIs] = __expectString(output[_UGIs]); } - if (output.SubnetIds === "") { + if (String(output.SubnetIds).trim() === "") { contents[_SI] = []; } else if (output[_SI] != null && output[_SI][_SIu] != null) { contents[_SI] = de_SubnetIdsList(__getArrayIfSingleItem(output[_SI][_SIu]), context); @@ -11485,7 +11485,7 @@ const de_ServiceUpdatesMessage = (output: any, context: __SerdeContext): Service if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ServiceUpdates === "") { + if (String(output.ServiceUpdates).trim() === "") { contents[_SU] = []; } else if (output[_SU] != null && output[_SU][_SUe] != null) { contents[_SU] = de_ServiceUpdateList(__getArrayIfSingleItem(output[_SU][_SUe]), context); @@ -11581,7 +11581,7 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { if (output[_AF] != null) { contents[_AF] = __expectString(output[_AF]); } - if (output.NodeSnapshots === "") { + if (String(output.NodeSnapshots).trim() === "") { contents[_NS] = []; } else if (output[_NS] != null && output[_NS][_NSo] != null) { contents[_NS] = de_NodeSnapshotList(__getArrayIfSingleItem(output[_NS][_NSo]), context); @@ -11681,7 +11681,7 @@ const de_Subnet = (output: any, context: __SerdeContext): Subnet => { if (output[_SO] != null) { contents[_SO] = de_SubnetOutpost(output[_SO], context); } - if (output.SupportedNetworkTypes === "") { + if (String(output.SupportedNetworkTypes).trim() === "") { contents[_SNT] = []; } else if (output[_SNT] != null && output[_SNT][_m] != null) { contents[_SNT] = de_NetworkTypeList(__getArrayIfSingleItem(output[_SNT][_m]), context); @@ -11774,7 +11774,7 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Ta] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); @@ -11937,12 +11937,12 @@ const de_UpdateAction = (output: any, context: __SerdeContext): UpdateAction => if (output[_SMla] != null) { contents[_SMla] = __expectString(output[_SMla]); } - if (output.NodeGroupUpdateStatus === "") { + if (String(output.NodeGroupUpdateStatus).trim() === "") { contents[_NGUS] = []; } else if (output[_NGUS] != null && output[_NGUS][_NGUS] != null) { contents[_NGUS] = de_NodeGroupUpdateStatusList(__getArrayIfSingleItem(output[_NGUS][_NGUS]), context); } - if (output.CacheNodeUpdateStatus === "") { + if (String(output.CacheNodeUpdateStatus).trim() === "") { contents[_CNUS] = []; } else if (output[_CNUS] != null && output[_CNUS][_CNUS] != null) { contents[_CNUS] = de_CacheNodeUpdateStatusList(__getArrayIfSingleItem(output[_CNUS][_CNUS]), context); @@ -11972,12 +11972,12 @@ const de_UpdateActionList = (output: any, context: __SerdeContext): UpdateAction */ const de_UpdateActionResultsMessage = (output: any, context: __SerdeContext): UpdateActionResultsMessage => { const contents: any = {}; - if (output.ProcessedUpdateActions === "") { + if (String(output.ProcessedUpdateActions).trim() === "") { contents[_PUA] = []; } else if (output[_PUA] != null && output[_PUA][_PUAr] != null) { contents[_PUA] = de_ProcessedUpdateActionList(__getArrayIfSingleItem(output[_PUA][_PUAr]), context); } - if (output.UnprocessedUpdateActions === "") { + if (String(output.UnprocessedUpdateActions).trim() === "") { contents[_UUA] = []; } else if (output[_UUA] != null && output[_UUA][_UUAn] != null) { contents[_UUA] = de_UnprocessedUpdateActionList(__getArrayIfSingleItem(output[_UUA][_UUAn]), context); @@ -11993,7 +11993,7 @@ const de_UpdateActionsMessage = (output: any, context: __SerdeContext): UpdateAc if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.UpdateActions === "") { + if (String(output.UpdateActions).trim() === "") { contents[_UA] = []; } else if (output[_UA] != null && output[_UA][_UAp] != null) { contents[_UA] = de_UpdateActionList(__getArrayIfSingleItem(output[_UA][_UAp]), context); @@ -12024,7 +12024,7 @@ const de_User = (output: any, context: __SerdeContext): User => { if (output[_AS] != null) { contents[_AS] = __expectString(output[_AS]); } - if (output.UserGroupIds === "") { + if (String(output.UserGroupIds).trim() === "") { contents[_UGI] = []; } else if (output[_UGI] != null && output[_UGI][_m] != null) { contents[_UGI] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGI][_m]), context); @@ -12063,7 +12063,7 @@ const de_UserGroup = (output: any, context: __SerdeContext): UserGroup => { if (output[_E] != null) { contents[_E] = __expectString(output[_E]); } - if (output.UserIds === "") { + if (String(output.UserIds).trim() === "") { contents[_UI] = []; } else if (output[_UI] != null && output[_UI][_m] != null) { contents[_UI] = de_UserIdList(__getArrayIfSingleItem(output[_UI][_m]), context); @@ -12074,12 +12074,12 @@ const de_UserGroup = (output: any, context: __SerdeContext): UserGroup => { if (output[_PCe] != null) { contents[_PCe] = de_UserGroupPendingChanges(output[_PCe], context); } - if (output.ReplicationGroups === "") { + if (String(output.ReplicationGroups).trim() === "") { contents[_RGe] = []; } else if (output[_RGe] != null && output[_RGe][_m] != null) { contents[_RGe] = de_UGReplicationGroupIdList(__getArrayIfSingleItem(output[_RGe][_m]), context); } - if (output.ServerlessCaches === "") { + if (String(output.ServerlessCaches).trim() === "") { contents[_SCer] = []; } else if (output[_SCer] != null && output[_SCer][_m] != null) { contents[_SCer] = de_UGServerlessCacheIdList(__getArrayIfSingleItem(output[_SCer][_m]), context); @@ -12139,12 +12139,12 @@ const de_UserGroupNotFoundFault = (output: any, context: __SerdeContext): UserGr */ const de_UserGroupPendingChanges = (output: any, context: __SerdeContext): UserGroupPendingChanges => { const contents: any = {}; - if (output.UserIdsToRemove === "") { + if (String(output.UserIdsToRemove).trim() === "") { contents[_UITR] = []; } else if (output[_UITR] != null && output[_UITR][_m] != null) { contents[_UITR] = de_UserIdList(__getArrayIfSingleItem(output[_UITR][_m]), context); } - if (output.UserIdsToAdd === "") { + if (String(output.UserIdsToAdd).trim() === "") { contents[_UITA] = []; } else if (output[_UITA] != null && output[_UITA][_m] != null) { contents[_UITA] = de_UserIdList(__getArrayIfSingleItem(output[_UITA][_m]), context); @@ -12168,12 +12168,12 @@ const de_UserGroupQuotaExceededFault = (output: any, context: __SerdeContext): U */ const de_UserGroupsUpdateStatus = (output: any, context: __SerdeContext): UserGroupsUpdateStatus => { const contents: any = {}; - if (output.UserGroupIdsToAdd === "") { + if (String(output.UserGroupIdsToAdd).trim() === "") { contents[_UGITA] = []; } else if (output[_UGITA] != null && output[_UGITA][_m] != null) { contents[_UGITA] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGITA][_m]), context); } - if (output.UserGroupIdsToRemove === "") { + if (String(output.UserGroupIdsToRemove).trim() === "") { contents[_UGITR] = []; } else if (output[_UGITR] != null && output[_UGITR][_m] != null) { contents[_UGITR] = de_UserGroupIdList(__getArrayIfSingleItem(output[_UGITR][_m]), context); diff --git a/clients/client-iam/src/protocols/Aws_query.ts b/clients/client-iam/src/protocols/Aws_query.ts index f0409f3ab47d..75dfcbf6d856 100644 --- a/clients/client-iam/src/protocols/Aws_query.ts +++ b/clients/client-iam/src/protocols/Aws_query.ts @@ -10643,7 +10643,7 @@ const de_CreateOpenIDConnectProviderResponse = ( if (output[_OIDCPA] != null) { contents[_OIDCPA] = __expectString(output[_OIDCPA]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -10692,7 +10692,7 @@ const de_CreateSAMLProviderResponse = (output: any, context: __SerdeContext): Cr if (output[_SAMLPA] != null) { contents[_SAMLPA] = __expectString(output[_SAMLPA]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -10819,7 +10819,7 @@ const de_DeletionTaskFailureReasonType = (output: any, context: __SerdeContext): if (output[_Re] != null) { contents[_Re] = __expectString(output[_Re]); } - if (output.RoleUsageList === "") { + if (String(output.RoleUsageList).trim() === "") { contents[_RUL] = []; } else if (output[_RUL] != null && output[_RUL][_me] != null) { contents[_RUL] = de_RoleUsageListType(__getArrayIfSingleItem(output[_RUL][_me]), context); @@ -10838,7 +10838,7 @@ const de_DisableOrganizationsRootCredentialsManagementResponse = ( if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.EnabledFeatures === "") { + if (String(output.EnabledFeatures).trim() === "") { contents[_EFn] = []; } else if (output[_EFn] != null && output[_EFn][_me] != null) { contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context); @@ -10857,7 +10857,7 @@ const de_DisableOrganizationsRootSessionsResponse = ( if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.EnabledFeatures === "") { + if (String(output.EnabledFeatures).trim() === "") { contents[_EFn] = []; } else if (output[_EFn] != null && output[_EFn][_me] != null) { contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context); @@ -10898,7 +10898,7 @@ const de_EnableOrganizationsRootCredentialsManagementResponse = ( if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.EnabledFeatures === "") { + if (String(output.EnabledFeatures).trim() === "") { contents[_EFn] = []; } else if (output[_EFn] != null && output[_EFn][_me] != null) { contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context); @@ -10917,7 +10917,7 @@ const de_EnableOrganizationsRootSessionsResponse = ( if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.EnabledFeatures === "") { + if (String(output.EnabledFeatures).trim() === "") { contents[_EFn] = []; } else if (output[_EFn] != null && output[_EFn][_me] != null) { contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context); @@ -11042,12 +11042,12 @@ const de_EvaluationResult = (output: any, context: __SerdeContext): EvaluationRe if (output[_ED] != null) { contents[_ED] = __expectString(output[_ED]); } - if (output.MatchedStatements === "") { + if (String(output.MatchedStatements).trim() === "") { contents[_MS] = []; } else if (output[_MS] != null && output[_MS][_me] != null) { contents[_MS] = de_StatementListType(__getArrayIfSingleItem(output[_MS][_me]), context); } - if (output.MissingContextValues === "") { + if (String(output.MissingContextValues).trim() === "") { contents[_MCV] = []; } else if (output[_MCV] != null && output[_MCV][_me] != null) { contents[_MCV] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_MCV][_me]), context); @@ -11058,12 +11058,12 @@ const de_EvaluationResult = (output: any, context: __SerdeContext): EvaluationRe if (output[_PBDD] != null) { contents[_PBDD] = de_PermissionsBoundaryDecisionDetail(output[_PBDD], context); } - if (output.EvalDecisionDetails === "") { + if (String(output.EvalDecisionDetails).trim() === "") { contents[_EDD] = {}; } else if (output[_EDD] != null && output[_EDD][_e] != null) { contents[_EDD] = de_EvalDecisionDetailsType(__getArrayIfSingleItem(output[_EDD][_e]), context); } - if (output.ResourceSpecificResults === "") { + if (String(output.ResourceSpecificResults).trim() === "") { contents[_RSR] = []; } else if (output[_RSR] != null && output[_RSR][_me] != null) { contents[_RSR] = de_ResourceSpecificResultListType(__getArrayIfSingleItem(output[_RSR][_me]), context); @@ -11160,22 +11160,22 @@ const de_GetAccountAuthorizationDetailsResponse = ( context: __SerdeContext ): GetAccountAuthorizationDetailsResponse => { const contents: any = {}; - if (output.UserDetailList === "") { + if (String(output.UserDetailList).trim() === "") { contents[_UDL] = []; } else if (output[_UDL] != null && output[_UDL][_me] != null) { contents[_UDL] = de_userDetailListType(__getArrayIfSingleItem(output[_UDL][_me]), context); } - if (output.GroupDetailList === "") { + if (String(output.GroupDetailList).trim() === "") { contents[_GDL] = []; } else if (output[_GDL] != null && output[_GDL][_me] != null) { contents[_GDL] = de_groupDetailListType(__getArrayIfSingleItem(output[_GDL][_me]), context); } - if (output.RoleDetailList === "") { + if (String(output.RoleDetailList).trim() === "") { contents[_RDL] = []; } else if (output[_RDL] != null && output[_RDL][_me] != null) { contents[_RDL] = de_roleDetailListType(__getArrayIfSingleItem(output[_RDL][_me]), context); } - if (output.Policies === "") { + if (String(output.Policies).trim() === "") { contents[_Pol] = []; } else if (output[_Pol] != null && output[_Pol][_me] != null) { contents[_Pol] = de_ManagedPolicyDetailListType(__getArrayIfSingleItem(output[_Pol][_me]), context); @@ -11208,7 +11208,7 @@ const de_GetAccountPasswordPolicyResponse = ( */ const de_GetAccountSummaryResponse = (output: any, context: __SerdeContext): GetAccountSummaryResponse => { const contents: any = {}; - if (output.SummaryMap === "") { + if (String(output.SummaryMap).trim() === "") { contents[_SM] = {}; } else if (output[_SM] != null && output[_SM][_e] != null) { contents[_SM] = de_summaryMapType(__getArrayIfSingleItem(output[_SM][_e]), context); @@ -11221,7 +11221,7 @@ const de_GetAccountSummaryResponse = (output: any, context: __SerdeContext): Get */ const de_GetContextKeysForPolicyResponse = (output: any, context: __SerdeContext): GetContextKeysForPolicyResponse => { const contents: any = {}; - if (output.ContextKeyNames === "") { + if (String(output.ContextKeyNames).trim() === "") { contents[_CKNo] = []; } else if (output[_CKNo] != null && output[_CKNo][_me] != null) { contents[_CKNo] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_CKNo][_me]), context); @@ -11271,7 +11271,7 @@ const de_GetGroupResponse = (output: any, context: __SerdeContext): GetGroupResp if (output[_Gr] != null) { contents[_Gr] = de_Group(output[_Gr], context); } - if (output.Users === "") { + if (String(output.Users).trim() === "") { contents[_Use] = []; } else if (output[_Use] != null && output[_Use][_me] != null) { contents[_Use] = de_userListType(__getArrayIfSingleItem(output[_Use][_me]), context); @@ -11321,7 +11321,7 @@ const de_GetMFADeviceResponse = (output: any, context: __SerdeContext): GetMFADe if (output[_EDn] != null) { contents[_EDn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EDn])); } - if (output.Certifications === "") { + if (String(output.Certifications).trim() === "") { contents[_Ce] = {}; } else if (output[_Ce] != null && output[_Ce][_e] != null) { contents[_Ce] = de_CertificationMapType(__getArrayIfSingleItem(output[_Ce][_e]), context); @@ -11340,12 +11340,12 @@ const de_GetOpenIDConnectProviderResponse = ( if (output[_U] != null) { contents[_U] = __expectString(output[_U]); } - if (output.ClientIDList === "") { + if (String(output.ClientIDList).trim() === "") { contents[_CIDL] = []; } else if (output[_CIDL] != null && output[_CIDL][_me] != null) { contents[_CIDL] = de_clientIDListType(__getArrayIfSingleItem(output[_CIDL][_me]), context); } - if (output.ThumbprintList === "") { + if (String(output.ThumbprintList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_me] != null) { contents[_TL] = de_thumbprintListType(__getArrayIfSingleItem(output[_TL][_me]), context); @@ -11353,7 +11353,7 @@ const de_GetOpenIDConnectProviderResponse = ( if (output[_CD] != null) { contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -11384,7 +11384,7 @@ const de_GetOrganizationsAccessReportResponse = ( if (output[_NOSNA] != null) { contents[_NOSNA] = __strictParseInt32(output[_NOSNA]) as number; } - if (output.AccessDetails === "") { + if (String(output.AccessDetails).trim() === "") { contents[_AD] = []; } else if (output[_AD] != null && output[_AD][_me] != null) { contents[_AD] = de_AccessDetails(__getArrayIfSingleItem(output[_AD][_me]), context); @@ -11468,7 +11468,7 @@ const de_GetSAMLProviderResponse = (output: any, context: __SerdeContext): GetSA if (output[_VU] != null) { contents[_VU] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_VU])); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -11476,7 +11476,7 @@ const de_GetSAMLProviderResponse = (output: any, context: __SerdeContext): GetSA if (output[_AEM] != null) { contents[_AEM] = __expectString(output[_AEM]); } - if (output.PrivateKeyList === "") { + if (String(output.PrivateKeyList).trim() === "") { contents[_PKL] = []; } else if (output[_PKL] != null && output[_PKL][_me] != null) { contents[_PKL] = de_privateKeyList(__getArrayIfSingleItem(output[_PKL][_me]), context); @@ -11512,7 +11512,7 @@ const de_GetServiceLastAccessedDetailsResponse = ( if (output[_JCD] != null) { contents[_JCD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCD])); } - if (output.ServicesLastAccessed === "") { + if (String(output.ServicesLastAccessed).trim() === "") { contents[_SLA] = []; } else if (output[_SLA] != null && output[_SLA][_me] != null) { contents[_SLA] = de_ServicesLastAccessed(__getArrayIfSingleItem(output[_SLA][_me]), context); @@ -11549,7 +11549,7 @@ const de_GetServiceLastAccessedDetailsWithEntitiesResponse = ( if (output[_JCDo] != null) { contents[_JCDo] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_JCDo])); } - if (output.EntityDetailsList === "") { + if (String(output.EntityDetailsList).trim() === "") { contents[_EDL] = []; } else if (output[_EDL] != null && output[_EDL][_me] != null) { contents[_EDL] = de_entityDetailsListType(__getArrayIfSingleItem(output[_EDL][_me]), context); @@ -11665,12 +11665,12 @@ const de_GroupDetail = (output: any, context: __SerdeContext): GroupDetail => { if (output[_CD] != null) { contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output.GroupPolicyList === "") { + if (String(output.GroupPolicyList).trim() === "") { contents[_GPL] = []; } else if (output[_GPL] != null && output[_GPL][_me] != null) { contents[_GPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_GPL][_me]), context); } - if (output.AttachedManagedPolicies === "") { + if (String(output.AttachedManagedPolicies).trim() === "") { contents[_AMP] = []; } else if (output[_AMP] != null && output[_AMP][_me] != null) { contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); @@ -11731,12 +11731,12 @@ const de_InstanceProfile = (output: any, context: __SerdeContext): InstanceProfi if (output[_CD] != null) { contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output.Roles === "") { + if (String(output.Roles).trim() === "") { contents[_Rol] = []; } else if (output[_Rol] != null && output[_Rol][_me] != null) { contents[_Rol] = de_roleListType(__getArrayIfSingleItem(output[_Rol][_me]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -11840,7 +11840,7 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE */ const de_ListAccessKeysResponse = (output: any, context: __SerdeContext): ListAccessKeysResponse => { const contents: any = {}; - if (output.AccessKeyMetadata === "") { + if (String(output.AccessKeyMetadata).trim() === "") { contents[_AKM] = []; } else if (output[_AKM] != null && output[_AKM][_me] != null) { contents[_AKM] = de_accessKeyMetadataListType(__getArrayIfSingleItem(output[_AKM][_me]), context); @@ -11859,7 +11859,7 @@ const de_ListAccessKeysResponse = (output: any, context: __SerdeContext): ListAc */ const de_ListAccountAliasesResponse = (output: any, context: __SerdeContext): ListAccountAliasesResponse => { const contents: any = {}; - if (output.AccountAliases === "") { + if (String(output.AccountAliases).trim() === "") { contents[_AAc] = []; } else if (output[_AAc] != null && output[_AAc][_me] != null) { contents[_AAc] = de_accountAliasListType(__getArrayIfSingleItem(output[_AAc][_me]), context); @@ -11881,7 +11881,7 @@ const de_ListAttachedGroupPoliciesResponse = ( context: __SerdeContext ): ListAttachedGroupPoliciesResponse => { const contents: any = {}; - if (output.AttachedPolicies === "") { + if (String(output.AttachedPolicies).trim() === "") { contents[_AP] = []; } else if (output[_AP] != null && output[_AP][_me] != null) { contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); @@ -11903,7 +11903,7 @@ const de_ListAttachedRolePoliciesResponse = ( context: __SerdeContext ): ListAttachedRolePoliciesResponse => { const contents: any = {}; - if (output.AttachedPolicies === "") { + if (String(output.AttachedPolicies).trim() === "") { contents[_AP] = []; } else if (output[_AP] != null && output[_AP][_me] != null) { contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); @@ -11925,7 +11925,7 @@ const de_ListAttachedUserPoliciesResponse = ( context: __SerdeContext ): ListAttachedUserPoliciesResponse => { const contents: any = {}; - if (output.AttachedPolicies === "") { + if (String(output.AttachedPolicies).trim() === "") { contents[_AP] = []; } else if (output[_AP] != null && output[_AP][_me] != null) { contents[_AP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AP][_me]), context); @@ -11944,17 +11944,17 @@ const de_ListAttachedUserPoliciesResponse = ( */ const de_ListEntitiesForPolicyResponse = (output: any, context: __SerdeContext): ListEntitiesForPolicyResponse => { const contents: any = {}; - if (output.PolicyGroups === "") { + if (String(output.PolicyGroups).trim() === "") { contents[_PG] = []; } else if (output[_PG] != null && output[_PG][_me] != null) { contents[_PG] = de_PolicyGroupListType(__getArrayIfSingleItem(output[_PG][_me]), context); } - if (output.PolicyUsers === "") { + if (String(output.PolicyUsers).trim() === "") { contents[_PU] = []; } else if (output[_PU] != null && output[_PU][_me] != null) { contents[_PU] = de_PolicyUserListType(__getArrayIfSingleItem(output[_PU][_me]), context); } - if (output.PolicyRoles === "") { + if (String(output.PolicyRoles).trim() === "") { contents[_PR] = []; } else if (output[_PR] != null && output[_PR][_me] != null) { contents[_PR] = de_PolicyRoleListType(__getArrayIfSingleItem(output[_PR][_me]), context); @@ -11973,7 +11973,7 @@ const de_ListEntitiesForPolicyResponse = (output: any, context: __SerdeContext): */ const de_ListGroupPoliciesResponse = (output: any, context: __SerdeContext): ListGroupPoliciesResponse => { const contents: any = {}; - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_me] != null) { contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); @@ -11992,7 +11992,7 @@ const de_ListGroupPoliciesResponse = (output: any, context: __SerdeContext): Lis */ const de_ListGroupsForUserResponse = (output: any, context: __SerdeContext): ListGroupsForUserResponse => { const contents: any = {}; - if (output.Groups === "") { + if (String(output.Groups).trim() === "") { contents[_Gro] = []; } else if (output[_Gro] != null && output[_Gro][_me] != null) { contents[_Gro] = de_groupListType(__getArrayIfSingleItem(output[_Gro][_me]), context); @@ -12011,7 +12011,7 @@ const de_ListGroupsForUserResponse = (output: any, context: __SerdeContext): Lis */ const de_ListGroupsResponse = (output: any, context: __SerdeContext): ListGroupsResponse => { const contents: any = {}; - if (output.Groups === "") { + if (String(output.Groups).trim() === "") { contents[_Gro] = []; } else if (output[_Gro] != null && output[_Gro][_me] != null) { contents[_Gro] = de_groupListType(__getArrayIfSingleItem(output[_Gro][_me]), context); @@ -12033,7 +12033,7 @@ const de_ListInstanceProfilesForRoleResponse = ( context: __SerdeContext ): ListInstanceProfilesForRoleResponse => { const contents: any = {}; - if (output.InstanceProfiles === "") { + if (String(output.InstanceProfiles).trim() === "") { contents[_IPn] = []; } else if (output[_IPn] != null && output[_IPn][_me] != null) { contents[_IPn] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPn][_me]), context); @@ -12052,7 +12052,7 @@ const de_ListInstanceProfilesForRoleResponse = ( */ const de_ListInstanceProfilesResponse = (output: any, context: __SerdeContext): ListInstanceProfilesResponse => { const contents: any = {}; - if (output.InstanceProfiles === "") { + if (String(output.InstanceProfiles).trim() === "") { contents[_IPn] = []; } else if (output[_IPn] != null && output[_IPn][_me] != null) { contents[_IPn] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPn][_me]), context); @@ -12071,7 +12071,7 @@ const de_ListInstanceProfilesResponse = (output: any, context: __SerdeContext): */ const de_ListInstanceProfileTagsResponse = (output: any, context: __SerdeContext): ListInstanceProfileTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12090,7 +12090,7 @@ const de_ListInstanceProfileTagsResponse = (output: any, context: __SerdeContext */ const de_ListMFADevicesResponse = (output: any, context: __SerdeContext): ListMFADevicesResponse => { const contents: any = {}; - if (output.MFADevices === "") { + if (String(output.MFADevices).trim() === "") { contents[_MFAD] = []; } else if (output[_MFAD] != null && output[_MFAD][_me] != null) { contents[_MFAD] = de_mfaDeviceListType(__getArrayIfSingleItem(output[_MFAD][_me]), context); @@ -12109,7 +12109,7 @@ const de_ListMFADevicesResponse = (output: any, context: __SerdeContext): ListMF */ const de_ListMFADeviceTagsResponse = (output: any, context: __SerdeContext): ListMFADeviceTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12131,7 +12131,7 @@ const de_ListOpenIDConnectProvidersResponse = ( context: __SerdeContext ): ListOpenIDConnectProvidersResponse => { const contents: any = {}; - if (output.OpenIDConnectProviderList === "") { + if (String(output.OpenIDConnectProviderList).trim() === "") { contents[_OIDCPL] = []; } else if (output[_OIDCPL] != null && output[_OIDCPL][_me] != null) { contents[_OIDCPL] = de_OpenIDConnectProviderListType(__getArrayIfSingleItem(output[_OIDCPL][_me]), context); @@ -12147,7 +12147,7 @@ const de_ListOpenIDConnectProviderTagsResponse = ( context: __SerdeContext ): ListOpenIDConnectProviderTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12172,7 +12172,7 @@ const de_ListOrganizationsFeaturesResponse = ( if (output[_OI] != null) { contents[_OI] = __expectString(output[_OI]); } - if (output.EnabledFeatures === "") { + if (String(output.EnabledFeatures).trim() === "") { contents[_EFn] = []; } else if (output[_EFn] != null && output[_EFn][_me] != null) { contents[_EFn] = de_FeaturesListType(__getArrayIfSingleItem(output[_EFn][_me]), context); @@ -12191,7 +12191,7 @@ const de_ListPoliciesGrantingServiceAccessEntry = ( if (output[_SNer] != null) { contents[_SNer] = __expectString(output[_SNer]); } - if (output.Policies === "") { + if (String(output.Policies).trim() === "") { contents[_Pol] = []; } else if (output[_Pol] != null && output[_Pol][_me] != null) { contents[_Pol] = de_policyGrantingServiceAccessListType(__getArrayIfSingleItem(output[_Pol][_me]), context); @@ -12207,7 +12207,7 @@ const de_ListPoliciesGrantingServiceAccessResponse = ( context: __SerdeContext ): ListPoliciesGrantingServiceAccessResponse => { const contents: any = {}; - if (output.PoliciesGrantingServiceAccess === "") { + if (String(output.PoliciesGrantingServiceAccess).trim() === "") { contents[_PGSA] = []; } else if (output[_PGSA] != null && output[_PGSA][_me] != null) { contents[_PGSA] = de_listPolicyGrantingServiceAccessResponseListType( @@ -12229,7 +12229,7 @@ const de_ListPoliciesGrantingServiceAccessResponse = ( */ const de_ListPoliciesResponse = (output: any, context: __SerdeContext): ListPoliciesResponse => { const contents: any = {}; - if (output.Policies === "") { + if (String(output.Policies).trim() === "") { contents[_Pol] = []; } else if (output[_Pol] != null && output[_Pol][_me] != null) { contents[_Pol] = de_policyListType(__getArrayIfSingleItem(output[_Pol][_me]), context); @@ -12262,7 +12262,7 @@ const de_listPolicyGrantingServiceAccessResponseListType = ( */ const de_ListPolicyTagsResponse = (output: any, context: __SerdeContext): ListPolicyTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12281,7 +12281,7 @@ const de_ListPolicyTagsResponse = (output: any, context: __SerdeContext): ListPo */ const de_ListPolicyVersionsResponse = (output: any, context: __SerdeContext): ListPolicyVersionsResponse => { const contents: any = {}; - if (output.Versions === "") { + if (String(output.Versions).trim() === "") { contents[_Ve] = []; } else if (output[_Ve] != null && output[_Ve][_me] != null) { contents[_Ve] = de_policyDocumentVersionListType(__getArrayIfSingleItem(output[_Ve][_me]), context); @@ -12300,7 +12300,7 @@ const de_ListPolicyVersionsResponse = (output: any, context: __SerdeContext): Li */ const de_ListRolePoliciesResponse = (output: any, context: __SerdeContext): ListRolePoliciesResponse => { const contents: any = {}; - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_me] != null) { contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); @@ -12319,7 +12319,7 @@ const de_ListRolePoliciesResponse = (output: any, context: __SerdeContext): List */ const de_ListRolesResponse = (output: any, context: __SerdeContext): ListRolesResponse => { const contents: any = {}; - if (output.Roles === "") { + if (String(output.Roles).trim() === "") { contents[_Rol] = []; } else if (output[_Rol] != null && output[_Rol][_me] != null) { contents[_Rol] = de_roleListType(__getArrayIfSingleItem(output[_Rol][_me]), context); @@ -12338,7 +12338,7 @@ const de_ListRolesResponse = (output: any, context: __SerdeContext): ListRolesRe */ const de_ListRoleTagsResponse = (output: any, context: __SerdeContext): ListRoleTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12357,7 +12357,7 @@ const de_ListRoleTagsResponse = (output: any, context: __SerdeContext): ListRole */ const de_ListSAMLProvidersResponse = (output: any, context: __SerdeContext): ListSAMLProvidersResponse => { const contents: any = {}; - if (output.SAMLProviderList === "") { + if (String(output.SAMLProviderList).trim() === "") { contents[_SAMLPL] = []; } else if (output[_SAMLPL] != null && output[_SAMLPL][_me] != null) { contents[_SAMLPL] = de_SAMLProviderListType(__getArrayIfSingleItem(output[_SAMLPL][_me]), context); @@ -12370,7 +12370,7 @@ const de_ListSAMLProvidersResponse = (output: any, context: __SerdeContext): Lis */ const de_ListSAMLProviderTagsResponse = (output: any, context: __SerdeContext): ListSAMLProviderTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12389,7 +12389,7 @@ const de_ListSAMLProviderTagsResponse = (output: any, context: __SerdeContext): */ const de_ListServerCertificatesResponse = (output: any, context: __SerdeContext): ListServerCertificatesResponse => { const contents: any = {}; - if (output.ServerCertificateMetadataList === "") { + if (String(output.ServerCertificateMetadataList).trim() === "") { contents[_SCML] = []; } else if (output[_SCML] != null && output[_SCML][_me] != null) { contents[_SCML] = de_serverCertificateMetadataListType(__getArrayIfSingleItem(output[_SCML][_me]), context); @@ -12411,7 +12411,7 @@ const de_ListServerCertificateTagsResponse = ( context: __SerdeContext ): ListServerCertificateTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12433,7 +12433,7 @@ const de_ListServiceSpecificCredentialsResponse = ( context: __SerdeContext ): ListServiceSpecificCredentialsResponse => { const contents: any = {}; - if (output.ServiceSpecificCredentials === "") { + if (String(output.ServiceSpecificCredentials).trim() === "") { contents[_SSCe] = []; } else if (output[_SSCe] != null && output[_SSCe][_me] != null) { contents[_SSCe] = de_ServiceSpecificCredentialsListType(__getArrayIfSingleItem(output[_SSCe][_me]), context); @@ -12452,7 +12452,7 @@ const de_ListServiceSpecificCredentialsResponse = ( */ const de_ListSigningCertificatesResponse = (output: any, context: __SerdeContext): ListSigningCertificatesResponse => { const contents: any = {}; - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_Cer] = []; } else if (output[_Cer] != null && output[_Cer][_me] != null) { contents[_Cer] = de_certificateListType(__getArrayIfSingleItem(output[_Cer][_me]), context); @@ -12471,7 +12471,7 @@ const de_ListSigningCertificatesResponse = (output: any, context: __SerdeContext */ const de_ListSSHPublicKeysResponse = (output: any, context: __SerdeContext): ListSSHPublicKeysResponse => { const contents: any = {}; - if (output.SSHPublicKeys === "") { + if (String(output.SSHPublicKeys).trim() === "") { contents[_SSHPKu] = []; } else if (output[_SSHPKu] != null && output[_SSHPKu][_me] != null) { contents[_SSHPKu] = de_SSHPublicKeyListType(__getArrayIfSingleItem(output[_SSHPKu][_me]), context); @@ -12490,7 +12490,7 @@ const de_ListSSHPublicKeysResponse = (output: any, context: __SerdeContext): Lis */ const de_ListUserPoliciesResponse = (output: any, context: __SerdeContext): ListUserPoliciesResponse => { const contents: any = {}; - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_me] != null) { contents[_PNo] = de_policyNameListType(__getArrayIfSingleItem(output[_PNo][_me]), context); @@ -12509,7 +12509,7 @@ const de_ListUserPoliciesResponse = (output: any, context: __SerdeContext): List */ const de_ListUsersResponse = (output: any, context: __SerdeContext): ListUsersResponse => { const contents: any = {}; - if (output.Users === "") { + if (String(output.Users).trim() === "") { contents[_Use] = []; } else if (output[_Use] != null && output[_Use][_me] != null) { contents[_Use] = de_userListType(__getArrayIfSingleItem(output[_Use][_me]), context); @@ -12528,7 +12528,7 @@ const de_ListUsersResponse = (output: any, context: __SerdeContext): ListUsersRe */ const de_ListUserTagsResponse = (output: any, context: __SerdeContext): ListUserTagsResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -12547,7 +12547,7 @@ const de_ListUserTagsResponse = (output: any, context: __SerdeContext): ListUser */ const de_ListVirtualMFADevicesResponse = (output: any, context: __SerdeContext): ListVirtualMFADevicesResponse => { const contents: any = {}; - if (output.VirtualMFADevices === "") { + if (String(output.VirtualMFADevices).trim() === "") { contents[_VMFADi] = []; } else if (output[_VMFADi] != null && output[_VMFADi][_me] != null) { contents[_VMFADi] = de_virtualMFADeviceListType(__getArrayIfSingleItem(output[_VMFADi][_me]), context); @@ -12641,7 +12641,7 @@ const de_ManagedPolicyDetail = (output: any, context: __SerdeContext): ManagedPo if (output[_UD] != null) { contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } - if (output.PolicyVersionList === "") { + if (String(output.PolicyVersionList).trim() === "") { contents[_PVL] = []; } else if (output[_PVL] != null && output[_PVL][_me] != null) { contents[_PVL] = de_policyDocumentVersionListType(__getArrayIfSingleItem(output[_PVL][_me]), context); @@ -12875,7 +12875,7 @@ const de_Policy = (output: any, context: __SerdeContext): Policy => { if (output[_UD] != null) { contents[_UD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_UD])); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13159,17 +13159,17 @@ const de_ResourceSpecificResult = (output: any, context: __SerdeContext): Resour if (output[_ERD] != null) { contents[_ERD] = __expectString(output[_ERD]); } - if (output.MatchedStatements === "") { + if (String(output.MatchedStatements).trim() === "") { contents[_MS] = []; } else if (output[_MS] != null && output[_MS][_me] != null) { contents[_MS] = de_StatementListType(__getArrayIfSingleItem(output[_MS][_me]), context); } - if (output.MissingContextValues === "") { + if (String(output.MissingContextValues).trim() === "") { contents[_MCV] = []; } else if (output[_MCV] != null && output[_MCV][_me] != null) { contents[_MCV] = de_ContextKeyNamesResultListType(__getArrayIfSingleItem(output[_MCV][_me]), context); } - if (output.EvalDecisionDetails === "") { + if (String(output.EvalDecisionDetails).trim() === "") { contents[_EDD] = {}; } else if (output[_EDD] != null && output[_EDD][_e] != null) { contents[_EDD] = de_EvalDecisionDetailsType(__getArrayIfSingleItem(output[_EDD][_e]), context); @@ -13223,7 +13223,7 @@ const de_Role = (output: any, context: __SerdeContext): Role => { if (output[_PB] != null) { contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13257,17 +13257,17 @@ const de_RoleDetail = (output: any, context: __SerdeContext): RoleDetail => { if (output[_ARPD] != null) { contents[_ARPD] = __expectString(output[_ARPD]); } - if (output.InstanceProfileList === "") { + if (String(output.InstanceProfileList).trim() === "") { contents[_IPL] = []; } else if (output[_IPL] != null && output[_IPL][_me] != null) { contents[_IPL] = de_instanceProfileListType(__getArrayIfSingleItem(output[_IPL][_me]), context); } - if (output.RolePolicyList === "") { + if (String(output.RolePolicyList).trim() === "") { contents[_RPL] = []; } else if (output[_RPL] != null && output[_RPL][_me] != null) { contents[_RPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_RPL][_me]), context); } - if (output.AttachedManagedPolicies === "") { + if (String(output.AttachedManagedPolicies).trim() === "") { contents[_AMP] = []; } else if (output[_AMP] != null && output[_AMP][_me] != null) { contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); @@ -13275,7 +13275,7 @@ const de_RoleDetail = (output: any, context: __SerdeContext): RoleDetail => { if (output[_PB] != null) { contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13341,7 +13341,7 @@ const de_RoleUsageType = (output: any, context: __SerdeContext): RoleUsageType = if (output[_R] != null) { contents[_R] = __expectString(output[_R]); } - if (output.Resources === "") { + if (String(output.Resources).trim() === "") { contents[_Res] = []; } else if (output[_Res] != null && output[_Res][_me] != null) { contents[_Res] = de_ArnListType(__getArrayIfSingleItem(output[_Res][_me]), context); @@ -13405,7 +13405,7 @@ const de_ServerCertificate = (output: any, context: __SerdeContext): ServerCerti if (output[_CC] != null) { contents[_CC] = __expectString(output[_CC]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13498,7 +13498,7 @@ const de_ServiceLastAccessed = (output: any, context: __SerdeContext): ServiceLa if (output[_TAE] != null) { contents[_TAE] = __strictParseInt32(output[_TAE]) as number; } - if (output.TrackedActionsLastAccessed === "") { + if (String(output.TrackedActionsLastAccessed).trim() === "") { contents[_TALA] = []; } else if (output[_TALA] != null && output[_TALA][_me] != null) { contents[_TALA] = de_TrackedActionsLastAccessed(__getArrayIfSingleItem(output[_TALA][_me]), context); @@ -13643,7 +13643,7 @@ const de_SigningCertificate = (output: any, context: __SerdeContext): SigningCer */ const de_SimulatePolicyResponse = (output: any, context: __SerdeContext): SimulatePolicyResponse => { const contents: any = {}; - if (output.EvaluationResults === "") { + if (String(output.EvaluationResults).trim() === "") { contents[_ER] = []; } else if (output[_ER] != null && output[_ER][_me] != null) { contents[_ER] = de_EvaluationResultsListType(__getArrayIfSingleItem(output[_ER][_me]), context); @@ -13888,7 +13888,7 @@ const de_UploadServerCertificateResponse = (output: any, context: __SerdeContext if (output[_SCM] != null) { contents[_SCM] = de_ServerCertificateMetadata(output[_SCM], context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13947,7 +13947,7 @@ const de_User = (output: any, context: __SerdeContext): User => { if (output[_PB] != null) { contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -13975,17 +13975,17 @@ const de_UserDetail = (output: any, context: __SerdeContext): UserDetail => { if (output[_CD] != null) { contents[_CD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CD])); } - if (output.UserPolicyList === "") { + if (String(output.UserPolicyList).trim() === "") { contents[_UPL] = []; } else if (output[_UPL] != null && output[_UPL][_me] != null) { contents[_UPL] = de_policyDetailListType(__getArrayIfSingleItem(output[_UPL][_me]), context); } - if (output.GroupList === "") { + if (String(output.GroupList).trim() === "") { contents[_GL] = []; } else if (output[_GL] != null && output[_GL][_me] != null) { contents[_GL] = de_groupNameListType(__getArrayIfSingleItem(output[_GL][_me]), context); } - if (output.AttachedManagedPolicies === "") { + if (String(output.AttachedManagedPolicies).trim() === "") { contents[_AMP] = []; } else if (output[_AMP] != null && output[_AMP][_me] != null) { contents[_AMP] = de_attachedPoliciesListType(__getArrayIfSingleItem(output[_AMP][_me]), context); @@ -13993,7 +13993,7 @@ const de_UserDetail = (output: any, context: __SerdeContext): UserDetail => { if (output[_PB] != null) { contents[_PB] = de_AttachedPermissionsBoundary(output[_PB], context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); @@ -14043,7 +14043,7 @@ const de_VirtualMFADevice = (output: any, context: __SerdeContext): VirtualMFADe if (output[_EDn] != null) { contents[_EDn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_EDn])); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_me] != null) { contents[_T] = de_tagListType(__getArrayIfSingleItem(output[_T][_me]), context); diff --git a/clients/client-neptune/src/protocols/Aws_query.ts b/clients/client-neptune/src/protocols/Aws_query.ts index 37ef5d966759..d5953e004618 100644 --- a/clients/client-neptune/src/protocols/Aws_query.ts +++ b/clients/client-neptune/src/protocols/Aws_query.ts @@ -7157,12 +7157,12 @@ const de_CreateDBClusterEndpointOutput = (output: any, context: __SerdeContext): if (output[_CET] != null) { contents[_CET] = __expectString(output[_CET]); } - if (output.StaticMembers === "") { + if (String(output.StaticMembers).trim() === "") { contents[_SM] = []; } else if (output[_SM] != null && output[_SM][_me] != null) { contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } - if (output.ExcludedMembers === "") { + if (String(output.ExcludedMembers).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -7272,7 +7272,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_AS] != null) { contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -7328,7 +7328,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_MU] != null) { contents[_MU] = __expectString(output[_MU]); } - if (output.DBClusterOptionGroupMemberships === "") { + if (String(output.DBClusterOptionGroupMemberships).trim() === "") { contents[_DBCOGM] = []; } else if (output[_DBCOGM] != null && output[_DBCOGM][_DBCOG] != null) { contents[_DBCOGM] = de_DBClusterOptionGroupMemberships(__getArrayIfSingleItem(output[_DBCOGM][_DBCOG]), context); @@ -7342,17 +7342,17 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_RSI] != null) { contents[_RSI] = __expectString(output[_RSI]); } - if (output.ReadReplicaIdentifiers === "") { + if (String(output.ReadReplicaIdentifiers).trim() === "") { contents[_RRI] = []; } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } - if (output.DBClusterMembers === "") { + if (String(output.DBClusterMembers).trim() === "") { contents[_DBCM] = []; } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); @@ -7372,7 +7372,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.AssociatedRoles === "") { + if (String(output.AssociatedRoles).trim() === "") { contents[_AR] = []; } else if (output[_AR] != null && output[_AR][_DBCR] != null) { contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); @@ -7389,7 +7389,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_CTTS] != null) { contents[_CTTS] = __parseBoolean(output[_CTTS]); } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); @@ -7458,12 +7458,12 @@ const de_DBClusterEndpoint = (output: any, context: __SerdeContext): DBClusterEn if (output[_CET] != null) { contents[_CET] = __expectString(output[_CET]); } - if (output.StaticMembers === "") { + if (String(output.StaticMembers).trim() === "") { contents[_SM] = []; } else if (output[_SM] != null && output[_SM][_me] != null) { contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } - if (output.ExcludedMembers === "") { + if (String(output.ExcludedMembers).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -7507,7 +7507,7 @@ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBCl if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusterEndpoints === "") { + if (String(output.DBClusterEndpoints).trim() === "") { contents[_DBCE] = []; } else if (output[_DBCE] != null && output[_DBCE][_DBCEL] != null) { contents[_DBCE] = de_DBClusterEndpointList(__getArrayIfSingleItem(output[_DBCE][_DBCEL]), context); @@ -7590,7 +7590,7 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusters === "") { + if (String(output.DBClusters).trim() === "") { contents[_DBCl] = []; } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); @@ -7659,7 +7659,7 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu */ const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -7717,7 +7717,7 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusterParameterGroups === "") { + if (String(output.DBClusterParameterGroups).trim() === "") { contents[_DBCPGl] = []; } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); @@ -7802,7 +7802,7 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ */ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -7892,7 +7892,7 @@ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DB if (output[_AN] != null) { contents[_AN] = __expectString(output[_AN]); } - if (output.AttributeValues === "") { + if (String(output.AttributeValues).trim() === "") { contents[_AVt] = []; } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); @@ -7922,7 +7922,7 @@ const de_DBClusterSnapshotAttributesResult = ( if (output[_DBCSI] != null) { contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output.DBClusterSnapshotAttributes === "") { + if (String(output.DBClusterSnapshotAttributes).trim() === "") { contents[_DBCSAl] = []; } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); @@ -7949,7 +7949,7 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBClusterSnapshots === "") { + if (String(output.DBClusterSnapshots).trim() === "") { contents[_DBCSl] = []; } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); @@ -7991,22 +7991,22 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_DCS] != null) { contents[_DCS] = de_CharacterSet(output[_DCS], context); } - if (output.SupportedCharacterSets === "") { + if (String(output.SupportedCharacterSets).trim() === "") { contents[_SCS] = []; } else if (output[_SCS] != null && output[_SCS][_CS] != null) { contents[_SCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SCS][_CS]), context); } - if (output.ValidUpgradeTarget === "") { + if (String(output.ValidUpgradeTarget).trim() === "") { contents[_VUT] = []; } else if (output[_VUT] != null && output[_VUT][_UT] != null) { contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } - if (output.SupportedTimezones === "") { + if (String(output.SupportedTimezones).trim() === "") { contents[_STu] = []; } else if (output[_STu] != null && output[_STu][_Ti] != null) { contents[_STu] = de_SupportedTimezonesList(__getArrayIfSingleItem(output[_STu][_Ti]), context); } - if (output.ExportableLogTypes === "") { + if (String(output.ExportableLogTypes).trim() === "") { contents[_ELTx] = []; } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); @@ -8042,7 +8042,7 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBEngineVersions === "") { + if (String(output.DBEngineVersions).trim() === "") { contents[_DBEV] = []; } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); @@ -8088,17 +8088,17 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_BRP] != null) { contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output.DBSecurityGroups === "") { + if (String(output.DBSecurityGroups).trim() === "") { contents[_DBSG] = []; } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { contents[_DBSG] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGM] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGM]), context); } - if (output.DBParameterGroups === "") { + if (String(output.DBParameterGroups).trim() === "") { contents[_DBPGa] = []; } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { contents[_DBPGa] = de_DBParameterGroupStatusList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); @@ -8130,7 +8130,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_RRSDBII] != null) { contents[_RRSDBII] = __expectString(output[_RRSDBII]); } - if (output.ReadReplicaDBInstanceIdentifiers === "") { + if (String(output.ReadReplicaDBInstanceIdentifiers).trim() === "") { contents[_RRDBII] = []; } else if (output[_RRDBII] != null && output[_RRDBII][_RRDBIIe] != null) { contents[_RRDBII] = de_ReadReplicaDBInstanceIdentifierList( @@ -8138,7 +8138,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { context ); } - if (output.ReadReplicaDBClusterIdentifiers === "") { + if (String(output.ReadReplicaDBClusterIdentifiers).trim() === "") { contents[_RRDBCI] = []; } else if (output[_RRDBCI] != null && output[_RRDBCI][_RRDBCIe] != null) { contents[_RRDBCI] = de_ReadReplicaDBClusterIdentifierList( @@ -8152,7 +8152,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_I] != null) { contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output.OptionGroupMemberships === "") { + if (String(output.OptionGroupMemberships).trim() === "") { contents[_OGM] = []; } else if (output[_OGM] != null && output[_OGM][_OGMp] != null) { contents[_OGM] = de_OptionGroupMembershipList(__getArrayIfSingleItem(output[_OGM][_OGMp]), context); @@ -8166,7 +8166,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_PA] != null) { contents[_PA] = __parseBoolean(output[_PA]); } - if (output.StatusInfos === "") { + if (String(output.StatusInfos).trim() === "") { contents[_SIt] = []; } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); @@ -8195,7 +8195,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_CACI] != null) { contents[_CACI] = __expectString(output[_CACI]); } - if (output.DomainMemberships === "") { + if (String(output.DomainMemberships).trim() === "") { contents[_DM] = []; } else if (output[_DM] != null && output[_DM][_DMo] != null) { contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); @@ -8230,7 +8230,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_PIKMSKI] != null) { contents[_PIKMSKI] = __expectString(output[_PIKMSKI]); } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); @@ -8271,7 +8271,7 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBInstances === "") { + if (String(output.DBInstances).trim() === "") { contents[_DBIn] = []; } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); @@ -8360,7 +8360,7 @@ const de_DBParameterGroupAlreadyExistsFault = ( */ const de_DBParameterGroupDetails = (output: any, context: __SerdeContext): DBParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -8426,7 +8426,7 @@ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBPa if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBParameterGroups === "") { + if (String(output.DBParameterGroups).trim() === "") { contents[_DBPGa] = []; } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { contents[_DBPGa] = de_DBParameterGroupList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); @@ -8534,7 +8534,7 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = if (output[_SGS] != null) { contents[_SGS] = __expectString(output[_SGS]); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_Sub] != null) { contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); @@ -8578,7 +8578,7 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.DBSubnetGroups === "") { + if (String(output.DBSubnetGroups).trim() === "") { contents[_DBSGub] = []; } else if (output[_DBSGub] != null && output[_DBSGub][_DBSGu] != null) { contents[_DBSGub] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGub][_DBSGu]), context); @@ -8667,12 +8667,12 @@ const de_DeleteDBClusterEndpointOutput = (output: any, context: __SerdeContext): if (output[_CET] != null) { contents[_CET] = __expectString(output[_CET]); } - if (output.StaticMembers === "") { + if (String(output.StaticMembers).trim() === "") { contents[_SM] = []; } else if (output[_SM] != null && output[_SM][_me] != null) { contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } - if (output.ExcludedMembers === "") { + if (String(output.ExcludedMembers).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -8889,7 +8889,7 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -8911,7 +8911,7 @@ const de_Event = (output: any, context: __SerdeContext): Event => { if (output[_Me] != null) { contents[_Me] = __expectString(output[_Me]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -8944,7 +8944,7 @@ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCateg if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -8968,7 +8968,7 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC */ const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; - if (output.EventCategoriesMapList === "") { + if (String(output.EventCategoriesMapList).trim() === "") { contents[_ECML] = []; } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); @@ -8995,7 +8995,7 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); @@ -9026,12 +9026,12 @@ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscr if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.SourceIdsList === "") { + if (String(output.SourceIdsList).trim() === "") { contents[_SIL] = []; } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } - if (output.EventCategoriesList === "") { + if (String(output.EventCategoriesList).trim() === "") { contents[_ECL] = []; } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); @@ -9078,7 +9078,7 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.EventSubscriptionsList === "") { + if (String(output.EventSubscriptionsList).trim() === "") { contents[_ESL] = []; } else if (output[_ESL] != null && output[_ESL][_ES] != null) { contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); @@ -9157,7 +9157,7 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = if (output[_DP] != null) { contents[_DP] = __parseBoolean(output[_DP]); } - if (output.GlobalClusterMembers === "") { + if (String(output.GlobalClusterMembers).trim() === "") { contents[_GCM] = []; } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); @@ -9198,7 +9198,7 @@ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClu if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.Readers === "") { + if (String(output.Readers).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_me] != null) { contents[_R] = de_ReadersArnList(__getArrayIfSingleItem(output[_R][_me]), context); @@ -9250,7 +9250,7 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.GlobalClusters === "") { + if (String(output.GlobalClusters).trim() === "") { contents[_GCl] = []; } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); @@ -9528,12 +9528,12 @@ const de_ModifyDBClusterEndpointOutput = (output: any, context: __SerdeContext): if (output[_CET] != null) { contents[_CET] = __expectString(output[_CET]); } - if (output.StaticMembers === "") { + if (String(output.StaticMembers).trim() === "") { contents[_SM] = []; } else if (output[_SM] != null && output[_SM][_me] != null) { contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } - if (output.ExcludedMembers === "") { + if (String(output.ExcludedMembers).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -9666,7 +9666,7 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_LM] != null) { contents[_LM] = __expectString(output[_LM]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -9741,7 +9741,7 @@ const de_OrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; - if (output.OrderableDBInstanceOptions === "") { + if (String(output.OrderableDBInstanceOptions).trim() === "") { contents[_ODBIO] = []; } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); @@ -9806,12 +9806,12 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => */ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; - if (output.LogTypesToEnable === "") { + if (String(output.LogTypesToEnable).trim() === "") { contents[_LTTE] = []; } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } - if (output.LogTypesToDisable === "") { + if (String(output.LogTypesToDisable).trim() === "") { contents[_LTTD] = []; } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); @@ -9875,7 +9875,7 @@ const de_PendingMaintenanceActionsMessage = ( context: __SerdeContext ): PendingMaintenanceActionsMessage => { const contents: any = {}; - if (output.PendingMaintenanceActions === "") { + if (String(output.PendingMaintenanceActions).trim() === "") { contents[_PMA] = []; } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); @@ -10094,7 +10094,7 @@ const de_ResourcePendingMaintenanceActions = ( if (output[_RI] != null) { contents[_RI] = __expectString(output[_RI]); } - if (output.PendingMaintenanceActionDetails === "") { + if (String(output.PendingMaintenanceActionDetails).trim() === "") { contents[_PMAD] = []; } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); @@ -10420,7 +10420,7 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Ta] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Ta]), context); @@ -10473,7 +10473,7 @@ const de_ValidDBInstanceModificationsMessage = ( context: __SerdeContext ): ValidDBInstanceModificationsMessage => { const contents: any = {}; - if (output.Storage === "") { + if (String(output.Storage).trim() === "") { contents[_Sto] = []; } else if (output[_Sto] != null && output[_Sto][_VSO] != null) { contents[_Sto] = de_ValidStorageOptionsList(__getArrayIfSingleItem(output[_Sto][_VSO]), context); @@ -10489,17 +10489,17 @@ const de_ValidStorageOptions = (output: any, context: __SerdeContext): ValidStor if (output[_ST] != null) { contents[_ST] = __expectString(output[_ST]); } - if (output.StorageSize === "") { + if (String(output.StorageSize).trim() === "") { contents[_SSt] = []; } else if (output[_SSt] != null && output[_SSt][_Ra] != null) { contents[_SSt] = de_RangeList(__getArrayIfSingleItem(output[_SSt][_Ra]), context); } - if (output.ProvisionedIops === "") { + if (String(output.ProvisionedIops).trim() === "") { contents[_PI] = []; } else if (output[_PI] != null && output[_PI][_Ra] != null) { contents[_PI] = de_RangeList(__getArrayIfSingleItem(output[_PI][_Ra]), context); } - if (output.IopsToStorageRatio === "") { + if (String(output.IopsToStorageRatio).trim() === "") { contents[_ITSR] = []; } else if (output[_ITSR] != null && output[_ITSR][_DR] != null) { contents[_ITSR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_ITSR][_DR]), context); diff --git a/clients/client-rds/src/protocols/Aws_query.ts b/clients/client-rds/src/protocols/Aws_query.ts index 994a014c7a99..20ab4ad28277 100644 --- a/clients/client-rds/src/protocols/Aws_query.ts +++ b/clients/client-rds/src/protocols/Aws_query.ts @@ -16540,7 +16540,7 @@ const se_VpcSecurityGroupIdList = (input: string[], context: __SerdeContext): an */ const de_AccountAttributesMessage = (output: any, context: __SerdeContext): AccountAttributesMessage => { const contents: any = {}; - if (output.AccountQuotas === "") { + if (String(output.AccountQuotas).trim() === "") { contents[_AQ] = []; } else if (output[_AQ] != null && output[_AQ][_AQc] != null) { contents[_AQ] = de_AccountQuotaList(__getArrayIfSingleItem(output[_AQ][_AQc]), context); @@ -16762,12 +16762,12 @@ const de_BlueGreenDeployment = (output: any, context: __SerdeContext): BlueGreen if (output[_Ta] != null) { contents[_Ta] = __expectString(output[_Ta]); } - if (output.SwitchoverDetails === "") { + if (String(output.SwitchoverDetails).trim() === "") { contents[_SD] = []; } else if (output[_SD] != null && output[_SD][_me] != null) { contents[_SD] = de_SwitchoverDetailList(__getArrayIfSingleItem(output[_SD][_me]), context); } - if (output.Tasks === "") { + if (String(output.Tasks).trim() === "") { contents[_Tas] = []; } else if (output[_Tas] != null && output[_Tas][_me] != null) { contents[_Tas] = de_BlueGreenDeploymentTaskList(__getArrayIfSingleItem(output[_Tas][_me]), context); @@ -16784,7 +16784,7 @@ const de_BlueGreenDeployment = (output: any, context: __SerdeContext): BlueGreen if (output[_DTe] != null) { contents[_DTe] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DTe])); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -16932,7 +16932,7 @@ const de_CertificateMessage = (output: any, context: __SerdeContext): Certificat if (output[_DCFNL] != null) { contents[_DCFNL] = __expectString(output[_DCFNL]); } - if (output.Certificates === "") { + if (String(output.Certificates).trim() === "") { contents[_Ce] = []; } else if (output[_Ce] != null && output[_Ce][_Cer] != null) { contents[_Ce] = de_CertificateList(__getArrayIfSingleItem(output[_Ce][_Cer]), context); @@ -17023,7 +17023,7 @@ const de_ConnectionPoolConfigurationInfo = (output: any, context: __SerdeContext if (output[_CBT] != null) { contents[_CBT] = __strictParseInt32(output[_CBT]) as number; } - if (output.SessionPinningFilters === "") { + if (String(output.SessionPinningFilters).trim() === "") { contents[_SPF] = []; } else if (output[_SPF] != null && output[_SPF][_me] != null) { contents[_SPF] = de_StringList(__getArrayIfSingleItem(output[_SPF][_me]), context); @@ -17394,7 +17394,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_AS] != null) { contents[_AS] = __strictParseInt32(output[_AS]) as number; } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -17435,7 +17435,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_RE] != null) { contents[_RE] = __expectString(output[_RE]); } - if (output.CustomEndpoints === "") { + if (String(output.CustomEndpoints).trim() === "") { contents[_CE] = []; } else if (output[_CE] != null && output[_CE][_me] != null) { contents[_CE] = de_StringList(__getArrayIfSingleItem(output[_CE][_me]), context); @@ -17458,7 +17458,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_MU] != null) { contents[_MU] = __expectString(output[_MU]); } - if (output.DBClusterOptionGroupMemberships === "") { + if (String(output.DBClusterOptionGroupMemberships).trim() === "") { contents[_DBCOGM] = []; } else if (output[_DBCOGM] != null && output[_DBCOGM][_DBCOG] != null) { contents[_DBCOGM] = de_DBClusterOptionGroupMemberships(__getArrayIfSingleItem(output[_DBCOGM][_DBCOG]), context); @@ -17472,22 +17472,22 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_RSI] != null) { contents[_RSI] = __expectString(output[_RSI]); } - if (output.ReadReplicaIdentifiers === "") { + if (String(output.ReadReplicaIdentifiers).trim() === "") { contents[_RRI] = []; } else if (output[_RRI] != null && output[_RRI][_RRIe] != null) { contents[_RRI] = de_ReadReplicaIdentifierList(__getArrayIfSingleItem(output[_RRI][_RRIe]), context); } - if (output.StatusInfos === "") { + if (String(output.StatusInfos).trim() === "") { contents[_SIt] = []; } else if (output[_SIt] != null && output[_SIt][_DBCSIl] != null) { contents[_SIt] = de_DBClusterStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBCSIl]), context); } - if (output.DBClusterMembers === "") { + if (String(output.DBClusterMembers).trim() === "") { contents[_DBCM] = []; } else if (output[_DBCM] != null && output[_DBCM][_DBCMl] != null) { contents[_DBCM] = de_DBClusterMemberList(__getArrayIfSingleItem(output[_DBCM][_DBCMl]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGMp] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGMp]), context); @@ -17507,7 +17507,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.AssociatedRoles === "") { + if (String(output.AssociatedRoles).trim() === "") { contents[_AR] = []; } else if (output[_AR] != null && output[_AR][_DBCR] != null) { contents[_AR] = de_DBClusterRoles(__getArrayIfSingleItem(output[_AR][_DBCR]), context); @@ -17530,7 +17530,7 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_BCCR] != null) { contents[_BCCR] = __strictParseLong(output[_BCCR]) as number; } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); @@ -17571,12 +17571,12 @@ const de_DBCluster = (output: any, context: __SerdeContext): DBCluster => { if (output[_CAC] != null) { contents[_CAC] = __parseBoolean(output[_CAC]); } - if (output.DomainMemberships === "") { + if (String(output.DomainMemberships).trim() === "") { contents[_DM] = []; } else if (output[_DM] != null && output[_DM][_DMo] != null) { contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -17738,7 +17738,7 @@ const de_DBClusterAutomatedBackup = (output: any, context: __SerdeContext): DBCl if (output[_EMn] != null) { contents[_EMn] = __expectString(output[_EMn]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -17783,7 +17783,7 @@ const de_DBClusterAutomatedBackupMessage = (output: any, context: __SerdeContext if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusterAutomatedBackups === "") { + if (String(output.DBClusterAutomatedBackups).trim() === "") { contents[_DBCAB] = []; } else if (output[_DBCAB] != null && output[_DBCAB][_DBCABl] != null) { contents[_DBCAB] = de_DBClusterAutomatedBackupList(__getArrayIfSingleItem(output[_DBCAB][_DBCABl]), context); @@ -17864,7 +17864,7 @@ const de_DBClusterBacktrackMessage = (output: any, context: __SerdeContext): DBC if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusterBacktracks === "") { + if (String(output.DBClusterBacktracks).trim() === "") { contents[_DBCB] = []; } else if (output[_DBCB] != null && output[_DBCB][_DBCBl] != null) { contents[_DBCB] = de_DBClusterBacktrackList(__getArrayIfSingleItem(output[_DBCB][_DBCBl]), context); @@ -17932,12 +17932,12 @@ const de_DBClusterEndpoint = (output: any, context: __SerdeContext): DBClusterEn if (output[_CETu] != null) { contents[_CETu] = __expectString(output[_CETu]); } - if (output.StaticMembers === "") { + if (String(output.StaticMembers).trim() === "") { contents[_SM] = []; } else if (output[_SM] != null && output[_SM][_me] != null) { contents[_SM] = de_StringList(__getArrayIfSingleItem(output[_SM][_me]), context); } - if (output.ExcludedMembers === "") { + if (String(output.ExcludedMembers).trim() === "") { contents[_EM] = []; } else if (output[_EM] != null && output[_EM][_me] != null) { contents[_EM] = de_StringList(__getArrayIfSingleItem(output[_EM][_me]), context); @@ -17981,7 +17981,7 @@ const de_DBClusterEndpointMessage = (output: any, context: __SerdeContext): DBCl if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusterEndpoints === "") { + if (String(output.DBClusterEndpoints).trim() === "") { contents[_DBCE] = []; } else if (output[_DBCE] != null && output[_DBCE][_DBCEL] != null) { contents[_DBCE] = de_DBClusterEndpointList(__getArrayIfSingleItem(output[_DBCE][_DBCEL]), context); @@ -18064,7 +18064,7 @@ const de_DBClusterMessage = (output: any, context: __SerdeContext): DBClusterMes if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusters === "") { + if (String(output.DBClusters).trim() === "") { contents[_DBCl] = []; } else if (output[_DBCl] != null && output[_DBCl][_DBC] != null) { contents[_DBCl] = de_DBClusterList(__getArrayIfSingleItem(output[_DBCl][_DBC]), context); @@ -18133,7 +18133,7 @@ const de_DBClusterParameterGroup = (output: any, context: __SerdeContext): DBClu */ const de_DBClusterParameterGroupDetails = (output: any, context: __SerdeContext): DBClusterParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -18191,7 +18191,7 @@ const de_DBClusterParameterGroupsMessage = (output: any, context: __SerdeContext if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusterParameterGroups === "") { + if (String(output.DBClusterParameterGroups).trim() === "") { contents[_DBCPGl] = []; } else if (output[_DBCPGl] != null && output[_DBCPGl][_DBCPG] != null) { contents[_DBCPGl] = de_DBClusterParameterGroupList(__getArrayIfSingleItem(output[_DBCPGl][_DBCPG]), context); @@ -18276,7 +18276,7 @@ const de_DBClusterRoles = (output: any, context: __SerdeContext): DBClusterRole[ */ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSnapshot => { const contents: any = {}; - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZones(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -18341,7 +18341,7 @@ const de_DBClusterSnapshot = (output: any, context: __SerdeContext): DBClusterSn if (output[_IAMDAE] != null) { contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -18383,7 +18383,7 @@ const de_DBClusterSnapshotAttribute = (output: any, context: __SerdeContext): DB if (output[_AN] != null) { contents[_AN] = __expectString(output[_AN]); } - if (output.AttributeValues === "") { + if (String(output.AttributeValues).trim() === "") { contents[_AVt] = []; } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); @@ -18413,7 +18413,7 @@ const de_DBClusterSnapshotAttributesResult = ( if (output[_DBCSI] != null) { contents[_DBCSI] = __expectString(output[_DBCSI]); } - if (output.DBClusterSnapshotAttributes === "") { + if (String(output.DBClusterSnapshotAttributes).trim() === "") { contents[_DBCSAl] = []; } else if (output[_DBCSAl] != null && output[_DBCSAl][_DBCSAlu] != null) { contents[_DBCSAl] = de_DBClusterSnapshotAttributeList(__getArrayIfSingleItem(output[_DBCSAl][_DBCSAlu]), context); @@ -18440,7 +18440,7 @@ const de_DBClusterSnapshotMessage = (output: any, context: __SerdeContext): DBCl if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBClusterSnapshots === "") { + if (String(output.DBClusterSnapshots).trim() === "") { contents[_DBCSl] = []; } else if (output[_DBCSl] != null && output[_DBCSl][_DBCS] != null) { contents[_DBCSl] = de_DBClusterSnapshotList(__getArrayIfSingleItem(output[_DBCSl][_DBCS]), context); @@ -18519,27 +18519,27 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_DBEMT] != null) { contents[_DBEMT] = __expectString(output[_DBEMT]); } - if (output.SupportedCharacterSets === "") { + if (String(output.SupportedCharacterSets).trim() === "") { contents[_SCS] = []; } else if (output[_SCS] != null && output[_SCS][_CS] != null) { contents[_SCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SCS][_CS]), context); } - if (output.SupportedNcharCharacterSets === "") { + if (String(output.SupportedNcharCharacterSets).trim() === "") { contents[_SNCS] = []; } else if (output[_SNCS] != null && output[_SNCS][_CS] != null) { contents[_SNCS] = de_SupportedCharacterSetsList(__getArrayIfSingleItem(output[_SNCS][_CS]), context); } - if (output.ValidUpgradeTarget === "") { + if (String(output.ValidUpgradeTarget).trim() === "") { contents[_VUT] = []; } else if (output[_VUT] != null && output[_VUT][_UT] != null) { contents[_VUT] = de_ValidUpgradeTargetList(__getArrayIfSingleItem(output[_VUT][_UT]), context); } - if (output.SupportedTimezones === "") { + if (String(output.SupportedTimezones).trim() === "") { contents[_STu] = []; } else if (output[_STu] != null && output[_STu][_Ti] != null) { contents[_STu] = de_SupportedTimezonesList(__getArrayIfSingleItem(output[_STu][_Ti]), context); } - if (output.ExportableLogTypes === "") { + if (String(output.ExportableLogTypes).trim() === "") { contents[_ELTx] = []; } else if (output[_ELTx] != null && output[_ELTx][_me] != null) { contents[_ELTx] = de_LogTypeList(__getArrayIfSingleItem(output[_ELTx][_me]), context); @@ -18550,12 +18550,12 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_SRRu] != null) { contents[_SRRu] = __parseBoolean(output[_SRRu]); } - if (output.SupportedEngineModes === "") { + if (String(output.SupportedEngineModes).trim() === "") { contents[_SEM] = []; } else if (output[_SEM] != null && output[_SEM][_me] != null) { contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); } - if (output.SupportedFeatureNames === "") { + if (String(output.SupportedFeatureNames).trim() === "") { contents[_SFN] = []; } else if (output[_SFN] != null && output[_SFN][_me] != null) { contents[_SFN] = de_FeatureNameList(__getArrayIfSingleItem(output[_SFN][_me]), context); @@ -18587,7 +18587,7 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_CTr] != null) { contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -18604,7 +18604,7 @@ const de_DBEngineVersion = (output: any, context: __SerdeContext): DBEngineVersi if (output[_SCRWR] != null) { contents[_SCRWR] = __parseBoolean(output[_SCRWR]); } - if (output.SupportedCACertificateIdentifiers === "") { + if (String(output.SupportedCACertificateIdentifiers).trim() === "") { contents[_SCACI] = []; } else if (output[_SCACI] != null && output[_SCACI][_me] != null) { contents[_SCACI] = de_CACertificateIdentifiersList(__getArrayIfSingleItem(output[_SCACI][_me]), context); @@ -18640,7 +18640,7 @@ const de_DBEngineVersionMessage = (output: any, context: __SerdeContext): DBEngi if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBEngineVersions === "") { + if (String(output.DBEngineVersions).trim() === "") { contents[_DBEV] = []; } else if (output[_DBEV] != null && output[_DBEV][_DBEVn] != null) { contents[_DBEV] = de_DBEngineVersionList(__getArrayIfSingleItem(output[_DBEV][_DBEVn]), context); @@ -18689,17 +18689,17 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_BRP] != null) { contents[_BRP] = __strictParseInt32(output[_BRP]) as number; } - if (output.DBSecurityGroups === "") { + if (String(output.DBSecurityGroups).trim() === "") { contents[_DBSG] = []; } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { contents[_DBSG] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGMp] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGMp]), context); } - if (output.DBParameterGroups === "") { + if (String(output.DBParameterGroups).trim() === "") { contents[_DBPGa] = []; } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { contents[_DBPGa] = de_DBParameterGroupStatusList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); @@ -18731,7 +18731,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_RRSDBII] != null) { contents[_RRSDBII] = __expectString(output[_RRSDBII]); } - if (output.ReadReplicaDBInstanceIdentifiers === "") { + if (String(output.ReadReplicaDBInstanceIdentifiers).trim() === "") { contents[_RRDBII] = []; } else if (output[_RRDBII] != null && output[_RRDBII][_RRDBIIe] != null) { contents[_RRDBII] = de_ReadReplicaDBInstanceIdentifierList( @@ -18739,7 +18739,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { context ); } - if (output.ReadReplicaDBClusterIdentifiers === "") { + if (String(output.ReadReplicaDBClusterIdentifiers).trim() === "") { contents[_RRDBCI] = []; } else if (output[_RRDBCI] != null && output[_RRDBCI][_RRDBCIe] != null) { contents[_RRDBCI] = de_ReadReplicaDBClusterIdentifierList( @@ -18756,7 +18756,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_I] != null) { contents[_I] = __strictParseInt32(output[_I]) as number; } - if (output.OptionGroupMemberships === "") { + if (String(output.OptionGroupMemberships).trim() === "") { contents[_OGM] = []; } else if (output[_OGM] != null && output[_OGM][_OGMp] != null) { contents[_OGM] = de_OptionGroupMembershipList(__getArrayIfSingleItem(output[_OGM][_OGMp]), context); @@ -18773,7 +18773,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_PA] != null) { contents[_PA] = __parseBoolean(output[_PA]); } - if (output.StatusInfos === "") { + if (String(output.StatusInfos).trim() === "") { contents[_SIt] = []; } else if (output[_SIt] != null && output[_SIt][_DBISI] != null) { contents[_SIt] = de_DBInstanceStatusInfoList(__getArrayIfSingleItem(output[_SIt][_DBISI]), context); @@ -18802,7 +18802,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_CACI] != null) { contents[_CACI] = __expectString(output[_CACI]); } - if (output.DomainMemberships === "") { + if (String(output.DomainMemberships).trim() === "") { contents[_DM] = []; } else if (output[_DM] != null && output[_DM][_DMo] != null) { contents[_DM] = de_DomainMembershipList(__getArrayIfSingleItem(output[_DM][_DMo]), context); @@ -18843,12 +18843,12 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_PIRP] != null) { contents[_PIRP] = __strictParseInt32(output[_PIRP]) as number; } - if (output.EnabledCloudwatchLogsExports === "") { + if (String(output.EnabledCloudwatchLogsExports).trim() === "") { contents[_ECLEn] = []; } else if (output[_ECLEn] != null && output[_ECLEn][_me] != null) { contents[_ECLEn] = de_LogTypeList(__getArrayIfSingleItem(output[_ECLEn][_me]), context); } - if (output.ProcessorFeatures === "") { + if (String(output.ProcessorFeatures).trim() === "") { contents[_PF] = []; } else if (output[_PF] != null && output[_PF][_PFr] != null) { contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); @@ -18856,7 +18856,7 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_DP] != null) { contents[_DP] = __parseBoolean(output[_DP]); } - if (output.AssociatedRoles === "") { + if (String(output.AssociatedRoles).trim() === "") { contents[_AR] = []; } else if (output[_AR] != null && output[_AR][_DBIR] != null) { contents[_AR] = de_DBInstanceRoles(__getArrayIfSingleItem(output[_AR][_DBIR]), context); @@ -18867,12 +18867,12 @@ const de_DBInstance = (output: any, context: __SerdeContext): DBInstance => { if (output[_MASa] != null) { contents[_MASa] = __strictParseInt32(output[_MASa]) as number; } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); } - if (output.DBInstanceAutomatedBackupsReplications === "") { + if (String(output.DBInstanceAutomatedBackupsReplications).trim() === "") { contents[_DBIABR] = []; } else if (output[_DBIABR] != null && output[_DBIABR][_DBIABRn] != null) { contents[_DBIABR] = de_DBInstanceAutomatedBackupsReplicationList( @@ -19043,7 +19043,7 @@ const de_DBInstanceAutomatedBackup = (output: any, context: __SerdeContext): DBI if (output[_DBIABA] != null) { contents[_DBIABA] = __expectString(output[_DBIABA]); } - if (output.DBInstanceAutomatedBackupsReplications === "") { + if (String(output.DBInstanceAutomatedBackupsReplications).trim() === "") { contents[_DBIABR] = []; } else if (output[_DBIABR] != null && output[_DBIABR][_DBIABRn] != null) { contents[_DBIABR] = de_DBInstanceAutomatedBackupsReplicationList( @@ -19091,7 +19091,7 @@ const de_DBInstanceAutomatedBackupMessage = ( if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBInstanceAutomatedBackups === "") { + if (String(output.DBInstanceAutomatedBackups).trim() === "") { contents[_DBIAB] = []; } else if (output[_DBIAB] != null && output[_DBIAB][_DBIABn] != null) { contents[_DBIAB] = de_DBInstanceAutomatedBackupList(__getArrayIfSingleItem(output[_DBIAB][_DBIABn]), context); @@ -19174,7 +19174,7 @@ const de_DBInstanceMessage = (output: any, context: __SerdeContext): DBInstanceM if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBInstances === "") { + if (String(output.DBInstances).trim() === "") { contents[_DBIn] = []; } else if (output[_DBIn] != null && output[_DBIn][_DBI] != null) { contents[_DBIn] = de_DBInstanceList(__getArrayIfSingleItem(output[_DBIn][_DBI]), context); @@ -19324,7 +19324,7 @@ const de_DBMajorEngineVersion = (output: any, context: __SerdeContext): DBMajorE if (output[_MEV] != null) { contents[_MEV] = __expectString(output[_MEV]); } - if (output.SupportedEngineLifecycles === "") { + if (String(output.SupportedEngineLifecycles).trim() === "") { contents[_SEL] = []; } else if (output[_SEL] != null && output[_SEL][_SELu] != null) { contents[_SEL] = de_SupportedEngineLifecycleList(__getArrayIfSingleItem(output[_SEL][_SELu]), context); @@ -19382,7 +19382,7 @@ const de_DBParameterGroupAlreadyExistsFault = ( */ const de_DBParameterGroupDetails = (output: any, context: __SerdeContext): DBParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -19448,7 +19448,7 @@ const de_DBParameterGroupsMessage = (output: any, context: __SerdeContext): DBPa if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBParameterGroups === "") { + if (String(output.DBParameterGroups).trim() === "") { contents[_DBPGa] = []; } else if (output[_DBPGa] != null && output[_DBPGa][_DBPG] != null) { contents[_DBPGa] = de_DBParameterGroupList(__getArrayIfSingleItem(output[_DBPGa][_DBPG]), context); @@ -19501,12 +19501,12 @@ const de_DBProxy = (output: any, context: __SerdeContext): DBProxy => { if (output[_VI] != null) { contents[_VI] = __expectString(output[_VI]); } - if (output.VpcSecurityGroupIds === "") { + if (String(output.VpcSecurityGroupIds).trim() === "") { contents[_VSGI] = []; } else if (output[_VSGI] != null && output[_VSGI][_me] != null) { contents[_VSGI] = de_StringList(__getArrayIfSingleItem(output[_VSGI][_me]), context); } - if (output.VpcSubnetIds === "") { + if (String(output.VpcSubnetIds).trim() === "") { contents[_VSI] = []; } else if (output[_VSI] != null && output[_VSI][_me] != null) { contents[_VSI] = de_StringList(__getArrayIfSingleItem(output[_VSI][_me]), context); @@ -19514,7 +19514,7 @@ const de_DBProxy = (output: any, context: __SerdeContext): DBProxy => { if (output[_DAS] != null) { contents[_DAS] = __expectString(output[_DAS]); } - if (output.Auth === "") { + if (String(output.Auth).trim() === "") { contents[_Au] = []; } else if (output[_Au] != null && output[_Au][_me] != null) { contents[_Au] = de_UserAuthConfigInfoList(__getArrayIfSingleItem(output[_Au][_me]), context); @@ -19580,12 +19580,12 @@ const de_DBProxyEndpoint = (output: any, context: __SerdeContext): DBProxyEndpoi if (output[_VI] != null) { contents[_VI] = __expectString(output[_VI]); } - if (output.VpcSecurityGroupIds === "") { + if (String(output.VpcSecurityGroupIds).trim() === "") { contents[_VSGI] = []; } else if (output[_VSGI] != null && output[_VSGI][_me] != null) { contents[_VSGI] = de_StringList(__getArrayIfSingleItem(output[_VSGI][_me]), context); } - if (output.VpcSubnetIds === "") { + if (String(output.VpcSubnetIds).trim() === "") { contents[_VSI] = []; } else if (output[_VSI] != null && output[_VSI][_me] != null) { contents[_VSI] = de_StringList(__getArrayIfSingleItem(output[_VSI][_me]), context); @@ -19829,7 +19829,7 @@ const de_DBRecommendation = (output: any, context: __SerdeContext): DBRecommenda if (output[_Rea] != null) { contents[_Rea] = __expectString(output[_Rea]); } - if (output.RecommendedActions === "") { + if (String(output.RecommendedActions).trim() === "") { contents[_RAec] = []; } else if (output[_RAec] != null && output[_RAec][_me] != null) { contents[_RAec] = de_RecommendedActionList(__getArrayIfSingleItem(output[_RAec][_me]), context); @@ -19852,7 +19852,7 @@ const de_DBRecommendation = (output: any, context: __SerdeContext): DBRecommenda if (output[_AId] != null) { contents[_AId] = __expectString(output[_AId]); } - if (output.Links === "") { + if (String(output.Links).trim() === "") { contents[_Li] = []; } else if (output[_Li] != null && output[_Li][_me] != null) { contents[_Li] = de_DocLinkList(__getArrayIfSingleItem(output[_Li][_me]), context); @@ -19890,7 +19890,7 @@ const de_DBRecommendationMessage = (output: any, context: __SerdeContext): DBRec */ const de_DBRecommendationsMessage = (output: any, context: __SerdeContext): DBRecommendationsMessage => { const contents: any = {}; - if (output.DBRecommendations === "") { + if (String(output.DBRecommendations).trim() === "") { contents[_DBRe] = []; } else if (output[_DBRe] != null && output[_DBRe][_me] != null) { contents[_DBRe] = de_DBRecommendationList(__getArrayIfSingleItem(output[_DBRe][_me]), context); @@ -19918,12 +19918,12 @@ const de_DBSecurityGroup = (output: any, context: __SerdeContext): DBSecurityGro if (output[_VI] != null) { contents[_VI] = __expectString(output[_VI]); } - if (output.EC2SecurityGroups === "") { + if (String(output.EC2SecurityGroups).trim() === "") { contents[_ECSG] = []; } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); } - if (output.IPRanges === "") { + if (String(output.IPRanges).trim() === "") { contents[_IPR] = []; } else if (output[_IPR] != null && output[_IPR][_IPRa] != null) { contents[_IPR] = de_IPRangeList(__getArrayIfSingleItem(output[_IPR][_IPRa]), context); @@ -19981,7 +19981,7 @@ const de_DBSecurityGroupMessage = (output: any, context: __SerdeContext): DBSecu if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBSecurityGroups === "") { + if (String(output.DBSecurityGroups).trim() === "") { contents[_DBSG] = []; } else if (output[_DBSG] != null && output[_DBSG][_DBSGe] != null) { contents[_DBSG] = de_DBSecurityGroups(__getArrayIfSingleItem(output[_DBSG][_DBSGe]), context); @@ -20074,7 +20074,7 @@ const de_DBShardGroup = (output: any, context: __SerdeContext): DBShardGroup => if (output[_DBSGAh] != null) { contents[_DBSGAh] = __expectString(output[_DBSGAh]); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -20198,7 +20198,7 @@ const de_DBSnapshot = (output: any, context: __SerdeContext): DBSnapshot => { if (output[_IAMDAE] != null) { contents[_IAMDAE] = __parseBoolean(output[_IAMDAE]); } - if (output.ProcessorFeatures === "") { + if (String(output.ProcessorFeatures).trim() === "") { contents[_PF] = []; } else if (output[_PF] != null && output[_PF][_PFr] != null) { contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); @@ -20206,7 +20206,7 @@ const de_DBSnapshot = (output: any, context: __SerdeContext): DBSnapshot => { if (output[_DRI] != null) { contents[_DRI] = __expectString(output[_DRI]); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -20257,7 +20257,7 @@ const de_DBSnapshotAttribute = (output: any, context: __SerdeContext): DBSnapsho if (output[_AN] != null) { contents[_AN] = __expectString(output[_AN]); } - if (output.AttributeValues === "") { + if (String(output.AttributeValues).trim() === "") { contents[_AVt] = []; } else if (output[_AVt] != null && output[_AVt][_AVtt] != null) { contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVtt]), context); @@ -20284,7 +20284,7 @@ const de_DBSnapshotAttributesResult = (output: any, context: __SerdeContext): DB if (output[_DBSIn] != null) { contents[_DBSIn] = __expectString(output[_DBSIn]); } - if (output.DBSnapshotAttributes === "") { + if (String(output.DBSnapshotAttributes).trim() === "") { contents[_DBSAn] = []; } else if (output[_DBSAn] != null && output[_DBSAn][_DBSAna] != null) { contents[_DBSAn] = de_DBSnapshotAttributeList(__getArrayIfSingleItem(output[_DBSAn][_DBSAna]), context); @@ -20311,7 +20311,7 @@ const de_DBSnapshotMessage = (output: any, context: __SerdeContext): DBSnapshotM if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBSnapshots === "") { + if (String(output.DBSnapshots).trim() === "") { contents[_DBSn] = []; } else if (output[_DBSn] != null && output[_DBSn][_DBS] != null) { contents[_DBSn] = de_DBSnapshotList(__getArrayIfSingleItem(output[_DBSn][_DBS]), context); @@ -20371,7 +20371,7 @@ const de_DBSnapshotTenantDatabase = (output: any, context: __SerdeContext): DBSn if (output[_NCSN] != null) { contents[_NCSN] = __expectString(output[_NCSN]); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -20415,7 +20415,7 @@ const de_DBSnapshotTenantDatabasesMessage = ( if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBSnapshotTenantDatabases === "") { + if (String(output.DBSnapshotTenantDatabases).trim() === "") { contents[_DBSTD] = []; } else if (output[_DBSTD] != null && output[_DBSTD][_DBSTDn] != null) { contents[_DBSTD] = de_DBSnapshotTenantDatabasesList(__getArrayIfSingleItem(output[_DBSTD][_DBSTDn]), context); @@ -20440,7 +20440,7 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = if (output[_SGS] != null) { contents[_SGS] = __expectString(output[_SGS]); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_Sub] != null) { contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); @@ -20448,7 +20448,7 @@ const de_DBSubnetGroup = (output: any, context: __SerdeContext): DBSubnetGroup = if (output[_DBSGAu] != null) { contents[_DBSGAu] = __expectString(output[_DBSGAu]); } - if (output.SupportedNetworkTypes === "") { + if (String(output.SupportedNetworkTypes).trim() === "") { contents[_SNT] = []; } else if (output[_SNT] != null && output[_SNT][_me] != null) { contents[_SNT] = de_StringList(__getArrayIfSingleItem(output[_SNT][_me]), context); @@ -20489,7 +20489,7 @@ const de_DBSubnetGroupMessage = (output: any, context: __SerdeContext): DBSubnet if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.DBSubnetGroups === "") { + if (String(output.DBSubnetGroups).trim() === "") { contents[_DBSGub] = []; } else if (output[_DBSGub] != null && output[_DBSGub][_DBSGu] != null) { contents[_DBSGub] = de_DBSubnetGroups(__getArrayIfSingleItem(output[_DBSGub][_DBSGu]), context); @@ -20723,7 +20723,7 @@ const de_DescribeBlueGreenDeploymentsResponse = ( context: __SerdeContext ): DescribeBlueGreenDeploymentsResponse => { const contents: any = {}; - if (output.BlueGreenDeployments === "") { + if (String(output.BlueGreenDeployments).trim() === "") { contents[_BGDl] = []; } else if (output[_BGDl] != null && output[_BGDl][_me] != null) { contents[_BGDl] = de_BlueGreenDeploymentList(__getArrayIfSingleItem(output[_BGDl][_me]), context); @@ -20781,7 +20781,7 @@ const de_DescribeDBLogFilesList = (output: any, context: __SerdeContext): Descri */ const de_DescribeDBLogFilesResponse = (output: any, context: __SerdeContext): DescribeDBLogFilesResponse => { const contents: any = {}; - if (output.DescribeDBLogFiles === "") { + if (String(output.DescribeDBLogFiles).trim() === "") { contents[_DDBLF] = []; } else if (output[_DDBLF] != null && output[_DDBLF][_DDBLFD] != null) { contents[_DDBLF] = de_DescribeDBLogFilesList(__getArrayIfSingleItem(output[_DDBLF][_DDBLFD]), context); @@ -20800,7 +20800,7 @@ const de_DescribeDBMajorEngineVersionsResponse = ( context: __SerdeContext ): DescribeDBMajorEngineVersionsResponse => { const contents: any = {}; - if (output.DBMajorEngineVersions === "") { + if (String(output.DBMajorEngineVersions).trim() === "") { contents[_DBMEV] = []; } else if (output[_DBMEV] != null && output[_DBMEV][_DBMEVa] != null) { contents[_DBMEV] = de_DBMajorEngineVersionsList(__getArrayIfSingleItem(output[_DBMEV][_DBMEVa]), context); @@ -20816,7 +20816,7 @@ const de_DescribeDBMajorEngineVersionsResponse = ( */ const de_DescribeDBProxiesResponse = (output: any, context: __SerdeContext): DescribeDBProxiesResponse => { const contents: any = {}; - if (output.DBProxies === "") { + if (String(output.DBProxies).trim() === "") { contents[_DBPr] = []; } else if (output[_DBPr] != null && output[_DBPr][_me] != null) { contents[_DBPr] = de_DBProxyList(__getArrayIfSingleItem(output[_DBPr][_me]), context); @@ -20835,7 +20835,7 @@ const de_DescribeDBProxyEndpointsResponse = ( context: __SerdeContext ): DescribeDBProxyEndpointsResponse => { const contents: any = {}; - if (output.DBProxyEndpoints === "") { + if (String(output.DBProxyEndpoints).trim() === "") { contents[_DBPEr] = []; } else if (output[_DBPEr] != null && output[_DBPEr][_me] != null) { contents[_DBPEr] = de_DBProxyEndpointList(__getArrayIfSingleItem(output[_DBPEr][_me]), context); @@ -20854,7 +20854,7 @@ const de_DescribeDBProxyTargetGroupsResponse = ( context: __SerdeContext ): DescribeDBProxyTargetGroupsResponse => { const contents: any = {}; - if (output.TargetGroups === "") { + if (String(output.TargetGroups).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_me] != null) { contents[_TG] = de_TargetGroupList(__getArrayIfSingleItem(output[_TG][_me]), context); @@ -20870,7 +20870,7 @@ const de_DescribeDBProxyTargetGroupsResponse = ( */ const de_DescribeDBProxyTargetsResponse = (output: any, context: __SerdeContext): DescribeDBProxyTargetsResponse => { const contents: any = {}; - if (output.Targets === "") { + if (String(output.Targets).trim() === "") { contents[_Tar] = []; } else if (output[_Tar] != null && output[_Tar][_me] != null) { contents[_Tar] = de_TargetList(__getArrayIfSingleItem(output[_Tar][_me]), context); @@ -20886,7 +20886,7 @@ const de_DescribeDBProxyTargetsResponse = (output: any, context: __SerdeContext) */ const de_DescribeDBShardGroupsResponse = (output: any, context: __SerdeContext): DescribeDBShardGroupsResponse => { const contents: any = {}; - if (output.DBShardGroups === "") { + if (String(output.DBShardGroups).trim() === "") { contents[_DBSGh] = []; } else if (output[_DBSGh] != null && output[_DBSGh][_DBSGha] != null) { contents[_DBSGh] = de_DBShardGroupsList(__getArrayIfSingleItem(output[_DBSGh][_DBSGha]), context); @@ -20947,7 +20947,7 @@ const de_DescribeIntegrationsResponse = (output: any, context: __SerdeContext): if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Integrations === "") { + if (String(output.Integrations).trim() === "") { contents[_In] = []; } else if (output[_In] != null && output[_In][_Int] != null) { contents[_In] = de_IntegrationList(__getArrayIfSingleItem(output[_In][_Int]), context); @@ -21031,7 +21031,7 @@ const de_DomainMembership = (output: any, context: __SerdeContext): DomainMember if (output[_ASA] != null) { contents[_ASA] = __expectString(output[_ASA]); } - if (output.DnsIps === "") { + if (String(output.DnsIps).trim() === "") { contents[_DIn] = []; } else if (output[_DIn] != null && output[_DIn][_me] != null) { contents[_DIn] = de_StringList(__getArrayIfSingleItem(output[_DIn][_me]), context); @@ -21203,7 +21203,7 @@ const de_EngineDefaults = (output: any, context: __SerdeContext): EngineDefaults if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -21236,7 +21236,7 @@ const de_Event = (output: any, context: __SerdeContext): Event => { if (output[_Me] != null) { contents[_Me] = __expectString(output[_Me]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -21269,7 +21269,7 @@ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCateg if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -21293,7 +21293,7 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC */ const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; - if (output.EventCategoriesMapList === "") { + if (String(output.EventCategoriesMapList).trim() === "") { contents[_ECML] = []; } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); @@ -21320,7 +21320,7 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); @@ -21351,12 +21351,12 @@ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscr if (output[_STo] != null) { contents[_STo] = __expectString(output[_STo]); } - if (output.SourceIdsList === "") { + if (String(output.SourceIdsList).trim() === "") { contents[_SIL] = []; } else if (output[_SIL] != null && output[_SIL][_SIou] != null) { contents[_SIL] = de_SourceIdsList(__getArrayIfSingleItem(output[_SIL][_SIou]), context); } - if (output.EventCategoriesList === "") { + if (String(output.EventCategoriesList).trim() === "") { contents[_ECL] = []; } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); @@ -21403,7 +21403,7 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.EventSubscriptionsList === "") { + if (String(output.EventSubscriptionsList).trim() === "") { contents[_ESL] = []; } else if (output[_ESL] != null && output[_ESL][_ES] != null) { contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); @@ -21422,7 +21422,7 @@ const de_ExportTask = (output: any, context: __SerdeContext): ExportTask => { if (output[_SA] != null) { contents[_SA] = __expectString(output[_SA]); } - if (output.ExportOnly === "") { + if (String(output.ExportOnly).trim() === "") { contents[_EO] = []; } else if (output[_EO] != null && output[_EO][_me] != null) { contents[_EO] = de_StringList(__getArrayIfSingleItem(output[_EO][_me]), context); @@ -21510,7 +21510,7 @@ const de_ExportTasksMessage = (output: any, context: __SerdeContext): ExportTask if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ExportTasks === "") { + if (String(output.ExportTasks).trim() === "") { contents[_ETx] = []; } else if (output[_ETx] != null && output[_ETx][_ETxp] != null) { contents[_ETx] = de_ExportTasksList(__getArrayIfSingleItem(output[_ETx][_ETxp]), context); @@ -21606,7 +21606,7 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = if (output[_DP] != null) { contents[_DP] = __parseBoolean(output[_DP]); } - if (output.GlobalClusterMembers === "") { + if (String(output.GlobalClusterMembers).trim() === "") { contents[_GCM] = []; } else if (output[_GCM] != null && output[_GCM][_GCMl] != null) { contents[_GCM] = de_GlobalClusterMemberList(__getArrayIfSingleItem(output[_GCM][_GCMl]), context); @@ -21617,7 +21617,7 @@ const de_GlobalCluster = (output: any, context: __SerdeContext): GlobalCluster = if (output[_FSa] != null) { contents[_FSa] = de_FailoverState(output[_FSa], context); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -21655,7 +21655,7 @@ const de_GlobalClusterMember = (output: any, context: __SerdeContext): GlobalClu if (output[_DBCA] != null) { contents[_DBCA] = __expectString(output[_DBCA]); } - if (output.Readers === "") { + if (String(output.Readers).trim() === "") { contents[_Read] = []; } else if (output[_Read] != null && output[_Read][_me] != null) { contents[_Read] = de_ReadersArnList(__getArrayIfSingleItem(output[_Read][_me]), context); @@ -21713,7 +21713,7 @@ const de_GlobalClustersMessage = (output: any, context: __SerdeContext): GlobalC if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.GlobalClusters === "") { + if (String(output.GlobalClusters).trim() === "") { contents[_GCl] = []; } else if (output[_GCl] != null && output[_GCl][_GCMl] != null) { contents[_GCl] = de_GlobalClusterList(__getArrayIfSingleItem(output[_GCl][_GCMl]), context); @@ -21830,7 +21830,7 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { if (output[_KMSKI] != null) { contents[_KMSKI] = __expectString(output[_KMSKI]); } - if (output.AdditionalEncryptionContext === "") { + if (String(output.AdditionalEncryptionContext).trim() === "") { contents[_AEC] = {}; } else if (output[_AEC] != null && output[_AEC][_e] != null) { contents[_AEC] = de_EncryptionContextMap(__getArrayIfSingleItem(output[_AEC][_e]), context); @@ -21838,7 +21838,7 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Tag] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Tag]), context); @@ -21846,7 +21846,7 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { if (output[_CTr] != null) { contents[_CTr] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CTr])); } - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_IE] != null) { contents[_Er] = de_IntegrationErrorList(__getArrayIfSingleItem(output[_Er][_IE]), context); @@ -22411,7 +22411,7 @@ const de_Metric = (output: any, context: __SerdeContext): Metric => { if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.References === "") { + if (String(output.References).trim() === "") { contents[_Ref] = []; } else if (output[_Ref] != null && output[_Ref][_me] != null) { contents[_Ref] = de_MetricReferenceList(__getArrayIfSingleItem(output[_Ref][_me]), context); @@ -22723,17 +22723,17 @@ const de_Option = (output: any, context: __SerdeContext): Option => { if (output[_OV] != null) { contents[_OV] = __expectString(output[_OV]); } - if (output.OptionSettings === "") { + if (String(output.OptionSettings).trim() === "") { contents[_OS] = []; } else if (output[_OS] != null && output[_OS][_OSp] != null) { contents[_OS] = de_OptionSettingConfigurationList(__getArrayIfSingleItem(output[_OS][_OSp]), context); } - if (output.DBSecurityGroupMemberships === "") { + if (String(output.DBSecurityGroupMemberships).trim() === "") { contents[_DBSGM] = []; } else if (output[_DBSGM] != null && output[_DBSGM][_DBSGe] != null) { contents[_DBSGM] = de_DBSecurityGroupMembershipList(__getArrayIfSingleItem(output[_DBSGM][_DBSGe]), context); } - if (output.VpcSecurityGroupMemberships === "") { + if (String(output.VpcSecurityGroupMemberships).trim() === "") { contents[_VSGM] = []; } else if (output[_VSGM] != null && output[_VSGM][_VSGMp] != null) { contents[_VSGM] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSGM][_VSGMp]), context); @@ -22758,7 +22758,7 @@ const de_OptionGroup = (output: any, context: __SerdeContext): OptionGroup => { if (output[_MEV] != null) { contents[_MEV] = __expectString(output[_MEV]); } - if (output.Options === "") { + if (String(output.Options).trim() === "") { contents[_O] = []; } else if (output[_O] != null && output[_O][_Op] != null) { contents[_O] = de_OptionsList(__getArrayIfSingleItem(output[_O][_Op]), context); @@ -22857,12 +22857,12 @@ const de_OptionGroupOption = (output: any, context: __SerdeContext): OptionGroup if (output[_DPe] != null) { contents[_DPe] = __strictParseInt32(output[_DPe]) as number; } - if (output.OptionsDependedOn === "") { + if (String(output.OptionsDependedOn).trim() === "") { contents[_ODO] = []; } else if (output[_ODO] != null && output[_ODO][_ON] != null) { contents[_ODO] = de_OptionsDependedOn(__getArrayIfSingleItem(output[_ODO][_ON]), context); } - if (output.OptionsConflictsWith === "") { + if (String(output.OptionsConflictsWith).trim() === "") { contents[_OCW] = []; } else if (output[_OCW] != null && output[_OCW][_OCN] != null) { contents[_OCW] = de_OptionsConflictsWith(__getArrayIfSingleItem(output[_OCW][_OCN]), context); @@ -22882,12 +22882,12 @@ const de_OptionGroupOption = (output: any, context: __SerdeContext): OptionGroup if (output[_SOVD] != null) { contents[_SOVD] = __parseBoolean(output[_SOVD]); } - if (output.OptionGroupOptionSettings === "") { + if (String(output.OptionGroupOptionSettings).trim() === "") { contents[_OGOS] = []; } else if (output[_OGOS] != null && output[_OGOS][_OGOSp] != null) { contents[_OGOS] = de_OptionGroupOptionSettingsList(__getArrayIfSingleItem(output[_OGOS][_OGOSp]), context); } - if (output.OptionGroupOptionVersions === "") { + if (String(output.OptionGroupOptionVersions).trim() === "") { contents[_OGOV] = []; } else if (output[_OGOV] != null && output[_OGOV][_OV] != null) { contents[_OGOV] = de_OptionGroupOptionVersionsList(__getArrayIfSingleItem(output[_OGOV][_OV]), context); @@ -22924,7 +22924,7 @@ const de_OptionGroupOptionSetting = (output: any, context: __SerdeContext): Opti if (output[_IR] != null) { contents[_IR] = __parseBoolean(output[_IR]); } - if (output.MinimumEngineVersionPerAllowedValue === "") { + if (String(output.MinimumEngineVersionPerAllowedValue).trim() === "") { contents[_MEVPAV] = []; } else if (output[_MEVPAV] != null && output[_MEVPAV][_MEVPAV] != null) { contents[_MEVPAV] = de_MinimumEngineVersionPerAllowedValueList( @@ -22962,7 +22962,7 @@ const de_OptionGroupOptionsList = (output: any, context: __SerdeContext): Option */ const de_OptionGroupOptionsMessage = (output: any, context: __SerdeContext): OptionGroupOptionsMessage => { const contents: any = {}; - if (output.OptionGroupOptions === "") { + if (String(output.OptionGroupOptions).trim() === "") { contents[_OGO] = []; } else if (output[_OGO] != null && output[_OGO][_OGOp] != null) { contents[_OGO] = de_OptionGroupOptionsList(__getArrayIfSingleItem(output[_OGO][_OGOp]), context); @@ -23000,7 +23000,7 @@ const de_OptionGroupQuotaExceededFault = (output: any, context: __SerdeContext): */ const de_OptionGroups = (output: any, context: __SerdeContext): OptionGroups => { const contents: any = {}; - if (output.OptionGroupsList === "") { + if (String(output.OptionGroupsList).trim() === "") { contents[_OGL] = []; } else if (output[_OGL] != null && output[_OGL][_OG] != null) { contents[_OGL] = de_OptionGroupsList(__getArrayIfSingleItem(output[_OGL][_OG]), context); @@ -23135,7 +23135,7 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_AZG] != null) { contents[_AZG] = __expectString(output[_AZG]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZ] = []; } else if (output[_AZ] != null && output[_AZ][_AZv] != null) { contents[_AZ] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZ][_AZv]), context); @@ -23185,12 +23185,12 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_MIPGa] != null) { contents[_MIPGa] = __strictParseFloat(output[_MIPGa]) as number; } - if (output.AvailableProcessorFeatures === "") { + if (String(output.AvailableProcessorFeatures).trim() === "") { contents[_APF] = []; } else if (output[_APF] != null && output[_APF][_APFv] != null) { contents[_APF] = de_AvailableProcessorFeatureList(__getArrayIfSingleItem(output[_APF][_APFv]), context); } - if (output.SupportedEngineModes === "") { + if (String(output.SupportedEngineModes).trim() === "") { contents[_SEM] = []; } else if (output[_SEM] != null && output[_SEM][_me] != null) { contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); @@ -23204,7 +23204,7 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_OC] != null) { contents[_OC] = __parseBoolean(output[_OC]); } - if (output.SupportedActivityStreamModes === "") { + if (String(output.SupportedActivityStreamModes).trim() === "") { contents[_SASM] = []; } else if (output[_SASM] != null && output[_SASM][_me] != null) { contents[_SASM] = de_ActivityStreamModeList(__getArrayIfSingleItem(output[_SASM][_me]), context); @@ -23215,7 +23215,7 @@ const de_OrderableDBInstanceOption = (output: any, context: __SerdeContext): Ord if (output[_SCu] != null) { contents[_SCu] = __parseBoolean(output[_SCu]); } - if (output.SupportedNetworkTypes === "") { + if (String(output.SupportedNetworkTypes).trim() === "") { contents[_SNT] = []; } else if (output[_SNT] != null && output[_SNT][_me] != null) { contents[_SNT] = de_StringList(__getArrayIfSingleItem(output[_SNT][_me]), context); @@ -23263,7 +23263,7 @@ const de_OrderableDBInstanceOptionsMessage = ( context: __SerdeContext ): OrderableDBInstanceOptionsMessage => { const contents: any = {}; - if (output.OrderableDBInstanceOptions === "") { + if (String(output.OrderableDBInstanceOptions).trim() === "") { contents[_ODBIO] = []; } else if (output[_ODBIO] != null && output[_ODBIO][_ODBIOr] != null) { contents[_ODBIO] = de_OrderableDBInstanceOptionsList(__getArrayIfSingleItem(output[_ODBIO][_ODBIOr]), context); @@ -23320,7 +23320,7 @@ const de_Parameter = (output: any, context: __SerdeContext): Parameter => { if (output[_AMp] != null) { contents[_AMp] = __expectString(output[_AMp]); } - if (output.SupportedEngineModes === "") { + if (String(output.SupportedEngineModes).trim() === "") { contents[_SEM] = []; } else if (output[_SEM] != null && output[_SEM][_me] != null) { contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); @@ -23344,12 +23344,12 @@ const de_ParametersList = (output: any, context: __SerdeContext): Parameter[] => */ const de_PendingCloudwatchLogsExports = (output: any, context: __SerdeContext): PendingCloudwatchLogsExports => { const contents: any = {}; - if (output.LogTypesToEnable === "") { + if (String(output.LogTypesToEnable).trim() === "") { contents[_LTTE] = []; } else if (output[_LTTE] != null && output[_LTTE][_me] != null) { contents[_LTTE] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTE][_me]), context); } - if (output.LogTypesToDisable === "") { + if (String(output.LogTypesToDisable).trim() === "") { contents[_LTTD] = []; } else if (output[_LTTD] != null && output[_LTTD][_me] != null) { contents[_LTTD] = de_LogTypeList(__getArrayIfSingleItem(output[_LTTD][_me]), context); @@ -23413,7 +23413,7 @@ const de_PendingMaintenanceActionsMessage = ( context: __SerdeContext ): PendingMaintenanceActionsMessage => { const contents: any = {}; - if (output.PendingMaintenanceActions === "") { + if (String(output.PendingMaintenanceActions).trim() === "") { contents[_PMA] = []; } else if (output[_PMA] != null && output[_PMA][_RPMA] != null) { contents[_PMA] = de_PendingMaintenanceActions(__getArrayIfSingleItem(output[_PMA][_RPMA]), context); @@ -23471,7 +23471,7 @@ const de_PendingModifiedValues = (output: any, context: __SerdeContext): Pending if (output[_PCLE] != null) { contents[_PCLE] = de_PendingCloudwatchLogsExports(output[_PCLE], context); } - if (output.ProcessorFeatures === "") { + if (String(output.ProcessorFeatures).trim() === "") { contents[_PF] = []; } else if (output[_PF] != null && output[_PF][_PFr] != null) { contents[_PF] = de_ProcessorFeatureList(__getArrayIfSingleItem(output[_PF][_PFr]), context); @@ -23508,7 +23508,7 @@ const de_PerformanceInsightsMetricDimensionGroup = ( context: __SerdeContext ): PerformanceInsightsMetricDimensionGroup => { const contents: any = {}; - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_Di] = []; } else if (output[_Di] != null && output[_Di][_me] != null) { contents[_Di] = de_StringList(__getArrayIfSingleItem(output[_Di][_me]), context); @@ -23547,7 +23547,7 @@ const de_PerformanceIssueDetails = (output: any, context: __SerdeContext): Perfo if (output[_ETn] != null) { contents[_ETn] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_ETn])); } - if (output.Metrics === "") { + if (String(output.Metrics).trim() === "") { contents[_Metr] = []; } else if (output[_Metr] != null && output[_Metr][_me] != null) { contents[_Metr] = de_MetricList(__getArrayIfSingleItem(output[_Metr][_me]), context); @@ -23778,12 +23778,12 @@ const de_RecommendedAction = (output: any, context: __SerdeContext): Recommended if (output[_Ope] != null) { contents[_Ope] = __expectString(output[_Ope]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_me] != null) { contents[_Pa] = de_RecommendedActionParameterList(__getArrayIfSingleItem(output[_Pa][_me]), context); } - if (output.ApplyModes === "") { + if (String(output.ApplyModes).trim() === "") { contents[_AMpp] = []; } else if (output[_AMpp] != null && output[_AMpp][_me] != null) { contents[_AMpp] = de_StringList(__getArrayIfSingleItem(output[_AMpp][_me]), context); @@ -23794,7 +23794,7 @@ const de_RecommendedAction = (output: any, context: __SerdeContext): Recommended if (output[_IDs] != null) { contents[_IDs] = de_IssueDetails(output[_IDs], context); } - if (output.ContextAttributes === "") { + if (String(output.ContextAttributes).trim() === "") { contents[_CAo] = []; } else if (output[_CAo] != null && output[_CAo][_me] != null) { contents[_CAo] = de_ContextAttributeList(__getArrayIfSingleItem(output[_CAo][_me]), context); @@ -23879,7 +23879,7 @@ const de_ReferenceDetails = (output: any, context: __SerdeContext): ReferenceDet */ const de_RegisterDBProxyTargetsResponse = (output: any, context: __SerdeContext): RegisterDBProxyTargetsResponse => { const contents: any = {}; - if (output.DBProxyTargets === "") { + if (String(output.DBProxyTargets).trim() === "") { contents[_DBPT] = []; } else if (output[_DBPT] != null && output[_DBPT][_me] != null) { contents[_DBPT] = de_TargetList(__getArrayIfSingleItem(output[_DBPT][_me]), context); @@ -23956,7 +23956,7 @@ const de_ReservedDBInstance = (output: any, context: __SerdeContext): ReservedDB if (output[_Sta] != null) { contents[_Sta] = __expectString(output[_Sta]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RC] = []; } else if (output[_RC] != null && output[_RC][_RCe] != null) { contents[_RC] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RC][_RCe]), context); @@ -24003,7 +24003,7 @@ const de_ReservedDBInstanceMessage = (output: any, context: __SerdeContext): Res if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ReservedDBInstances === "") { + if (String(output.ReservedDBInstances).trim() === "") { contents[_RDBIes] = []; } else if (output[_RDBIes] != null && output[_RDBIes][_RDBIe] != null) { contents[_RDBIes] = de_ReservedDBInstanceList(__getArrayIfSingleItem(output[_RDBIes][_RDBIe]), context); @@ -24068,7 +24068,7 @@ const de_ReservedDBInstancesOffering = (output: any, context: __SerdeContext): R if (output[_MAZ] != null) { contents[_MAZ] = __parseBoolean(output[_MAZ]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RC] = []; } else if (output[_RC] != null && output[_RC][_RCe] != null) { contents[_RC] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RC][_RCe]), context); @@ -24098,7 +24098,7 @@ const de_ReservedDBInstancesOfferingMessage = ( if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.ReservedDBInstancesOfferings === "") { + if (String(output.ReservedDBInstancesOfferings).trim() === "") { contents[_RDBIO] = []; } else if (output[_RDBIO] != null && output[_RDBIO][_RDBIOe] != null) { contents[_RDBIO] = de_ReservedDBInstancesOfferingList(__getArrayIfSingleItem(output[_RDBIO][_RDBIOe]), context); @@ -24142,7 +24142,7 @@ const de_ResourcePendingMaintenanceActions = ( if (output[_RI] != null) { contents[_RI] = __expectString(output[_RI]); } - if (output.PendingMaintenanceActionDetails === "") { + if (String(output.PendingMaintenanceActionDetails).trim() === "") { contents[_PMAD] = []; } else if (output[_PMAD] != null && output[_PMAD][_PMAe] != null) { contents[_PMAD] = de_PendingMaintenanceActionDetails(__getArrayIfSingleItem(output[_PMAD][_PMAe]), context); @@ -24468,7 +24468,7 @@ const de_SourceRegionMessage = (output: any, context: __SerdeContext): SourceReg if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.SourceRegions === "") { + if (String(output.SourceRegions).trim() === "") { contents[_SRo] = []; } else if (output[_SRo] != null && output[_SRo][_SR] != null) { contents[_SRo] = de_SourceRegionList(__getArrayIfSingleItem(output[_SRo][_SR]), context); @@ -24857,7 +24857,7 @@ const de_TagList = (output: any, context: __SerdeContext): Tag[] => { */ const de_TagListMessage = (output: any, context: __SerdeContext): TagListMessage => { const contents: any = {}; - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -24948,7 +24948,7 @@ const de_TenantDatabase = (output: any, context: __SerdeContext): TenantDatabase if (output[_MUS] != null) { contents[_MUS] = de_MasterUserSecret(output[_MUS], context); } - if (output.TagList === "") { + if (String(output.TagList).trim() === "") { contents[_TL] = []; } else if (output[_TL] != null && output[_TL][_Tag] != null) { contents[_TL] = de_TagList(__getArrayIfSingleItem(output[_TL][_Tag]), context); @@ -25031,7 +25031,7 @@ const de_TenantDatabasesMessage = (output: any, context: __SerdeContext): Tenant if (output[_Ma] != null) { contents[_Ma] = __expectString(output[_Ma]); } - if (output.TenantDatabases === "") { + if (String(output.TenantDatabases).trim() === "") { contents[_TDe] = []; } else if (output[_TDe] != null && output[_TDe][_TD] != null) { contents[_TDe] = de_TenantDatabasesList(__getArrayIfSingleItem(output[_TDe][_TD]), context); @@ -25081,7 +25081,7 @@ const de_UpgradeTarget = (output: any, context: __SerdeContext): UpgradeTarget = if (output[_IMVU] != null) { contents[_IMVU] = __parseBoolean(output[_IMVU]); } - if (output.SupportedEngineModes === "") { + if (String(output.SupportedEngineModes).trim() === "") { contents[_SEM] = []; } else if (output[_SEM] != null && output[_SEM][_me] != null) { contents[_SEM] = de_EngineModeList(__getArrayIfSingleItem(output[_SEM][_me]), context); @@ -25152,12 +25152,12 @@ const de_ValidDBInstanceModificationsMessage = ( context: __SerdeContext ): ValidDBInstanceModificationsMessage => { const contents: any = {}; - if (output.Storage === "") { + if (String(output.Storage).trim() === "") { contents[_Sto] = []; } else if (output[_Sto] != null && output[_Sto][_VSO] != null) { contents[_Sto] = de_ValidStorageOptionsList(__getArrayIfSingleItem(output[_Sto][_VSO]), context); } - if (output.ValidProcessorFeatures === "") { + if (String(output.ValidProcessorFeatures).trim() === "") { contents[_VPF] = []; } else if (output[_VPF] != null && output[_VPF][_APFv] != null) { contents[_VPF] = de_AvailableProcessorFeatureList(__getArrayIfSingleItem(output[_VPF][_APFv]), context); @@ -25176,17 +25176,17 @@ const de_ValidStorageOptions = (output: any, context: __SerdeContext): ValidStor if (output[_STt] != null) { contents[_STt] = __expectString(output[_STt]); } - if (output.StorageSize === "") { + if (String(output.StorageSize).trim() === "") { contents[_SSt] = []; } else if (output[_SSt] != null && output[_SSt][_Ra] != null) { contents[_SSt] = de_RangeList(__getArrayIfSingleItem(output[_SSt][_Ra]), context); } - if (output.ProvisionedIops === "") { + if (String(output.ProvisionedIops).trim() === "") { contents[_PI] = []; } else if (output[_PI] != null && output[_PI][_Ra] != null) { contents[_PI] = de_RangeList(__getArrayIfSingleItem(output[_PI][_Ra]), context); } - if (output.IopsToStorageRatio === "") { + if (String(output.IopsToStorageRatio).trim() === "") { contents[_ITSR] = []; } else if (output[_ITSR] != null && output[_ITSR][_DR] != null) { contents[_ITSR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_ITSR][_DR]), context); @@ -25194,12 +25194,12 @@ const de_ValidStorageOptions = (output: any, context: __SerdeContext): ValidStor if (output[_SSA] != null) { contents[_SSA] = __parseBoolean(output[_SSA]); } - if (output.ProvisionedStorageThroughput === "") { + if (String(output.ProvisionedStorageThroughput).trim() === "") { contents[_PST] = []; } else if (output[_PST] != null && output[_PST][_Ra] != null) { contents[_PST] = de_RangeList(__getArrayIfSingleItem(output[_PST][_Ra]), context); } - if (output.StorageThroughputToIopsRatio === "") { + if (String(output.StorageThroughputToIopsRatio).trim() === "") { contents[_STTIR] = []; } else if (output[_STTIR] != null && output[_STTIR][_DR] != null) { contents[_STTIR] = de_DoubleRangeList(__getArrayIfSingleItem(output[_STTIR][_DR]), context); diff --git a/clients/client-redshift/src/protocols/Aws_query.ts b/clients/client-redshift/src/protocols/Aws_query.ts index cd29b8e3e6ff..71f3c37b0836 100644 --- a/clients/client-redshift/src/protocols/Aws_query.ts +++ b/clients/client-redshift/src/protocols/Aws_query.ts @@ -13180,7 +13180,7 @@ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttri if (output[_ANt] != null) { contents[_ANt] = __expectString(output[_ANt]); } - if (output.AttributeValues === "") { + if (String(output.AttributeValues).trim() === "") { contents[_AVt] = []; } else if (output[_AVt] != null && output[_AVt][_AVT] != null) { contents[_AVt] = de_AttributeValueList(__getArrayIfSingleItem(output[_AVt][_AVT]), context); @@ -13193,7 +13193,7 @@ const de_AccountAttribute = (output: any, context: __SerdeContext): AccountAttri */ const de_AccountAttributeList = (output: any, context: __SerdeContext): AccountAttributeList => { const contents: any = {}; - if (output.AccountAttributes === "") { + if (String(output.AccountAttributes).trim() === "") { contents[_AA] = []; } else if (output[_AA] != null && output[_AA][_AAc] != null) { contents[_AA] = de_AttributeList(__getArrayIfSingleItem(output[_AA][_AAc]), context); @@ -13262,7 +13262,7 @@ const de_Association = (output: any, context: __SerdeContext): Association => { if (output[_CDCED] != null) { contents[_CDCED] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CDCED])); } - if (output.CertificateAssociations === "") { + if (String(output.CertificateAssociations).trim() === "") { contents[_CAe] = []; } else if (output[_CAe] != null && output[_CAe][_CAer] != null) { contents[_CAe] = de_CertificateAssociationList(__getArrayIfSingleItem(output[_CAe][_CAer]), context); @@ -13447,7 +13447,7 @@ const de_AuthorizedTokenIssuer = (output: any, context: __SerdeContext): Authori if (output[_TTIA] != null) { contents[_TTIA] = __expectString(output[_TTIA]); } - if (output.AuthorizedAudiencesList === "") { + if (String(output.AuthorizedAudiencesList).trim() === "") { contents[_AAL] = []; } else if (output[_AAL] != null && output[_AAL][_me] != null) { contents[_AAL] = de_AuthorizedAudienceList(__getArrayIfSingleItem(output[_AAL][_me]), context); @@ -13485,7 +13485,7 @@ const de_AvailabilityZone = (output: any, context: __SerdeContext): Availability if (output[_N] != null) { contents[_N] = __expectString(output[_N]); } - if (output.SupportedPlatforms === "") { + if (String(output.SupportedPlatforms).trim() === "") { contents[_SP] = []; } else if (output[_SP] != null && output[_SP][_SPu] != null) { contents[_SP] = de_SupportedPlatformsList(__getArrayIfSingleItem(output[_SP][_SPu]), context); @@ -13512,12 +13512,12 @@ const de_BatchDeleteClusterSnapshotsResult = ( context: __SerdeContext ): BatchDeleteClusterSnapshotsResult => { const contents: any = {}; - if (output.Resources === "") { + if (String(output.Resources).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_Str] != null) { contents[_R] = de_SnapshotIdentifierList(__getArrayIfSingleItem(output[_R][_Str]), context); } - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_SEM] != null) { contents[_Er] = de_BatchSnapshotOperationErrorList(__getArrayIfSingleItem(output[_Er][_SEM]), context); @@ -13561,12 +13561,12 @@ const de_BatchModifyClusterSnapshotsOutputMessage = ( context: __SerdeContext ): BatchModifyClusterSnapshotsOutputMessage => { const contents: any = {}; - if (output.Resources === "") { + if (String(output.Resources).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_Str] != null) { contents[_R] = de_SnapshotIdentifierList(__getArrayIfSingleItem(output[_R][_Str]), context); } - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_SEM] != null) { contents[_Er] = de_BatchSnapshotOperationErrors(__getArrayIfSingleItem(output[_Er][_SEM]), context); @@ -13670,17 +13670,17 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { if (output[_MSRP] != null) { contents[_MSRP] = __strictParseInt32(output[_MSRP]) as number; } - if (output.ClusterSecurityGroups === "") { + if (String(output.ClusterSecurityGroups).trim() === "") { contents[_CSG] = []; } else if (output[_CSG] != null && output[_CSG][_CSGl] != null) { contents[_CSG] = de_ClusterSecurityGroupMembershipList(__getArrayIfSingleItem(output[_CSG][_CSGl]), context); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGp] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGp]), context); } - if (output.ClusterParameterGroups === "") { + if (String(output.ClusterParameterGroups).trim() === "") { contents[_CPG] = []; } else if (output[_CPG] != null && output[_CPG][_CPGl] != null) { contents[_CPG] = de_ClusterParameterGroupStatusList(__getArrayIfSingleItem(output[_CPG][_CPGl]), context); @@ -13730,7 +13730,7 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { if (output[_CPK] != null) { contents[_CPK] = __expectString(output[_CPK]); } - if (output.ClusterNodes === "") { + if (String(output.ClusterNodes).trim() === "") { contents[_CN] = []; } else if (output[_CN] != null && output[_CN][_me] != null) { contents[_CN] = de_ClusterNodesList(__getArrayIfSingleItem(output[_CN][_me]), context); @@ -13741,7 +13741,7 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { if (output[_CRN] != null) { contents[_CRN] = __expectString(output[_CRN]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -13752,12 +13752,12 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { if (output[_EVR] != null) { contents[_EVR] = __parseBoolean(output[_EVR]); } - if (output.IamRoles === "") { + if (String(output.IamRoles).trim() === "") { contents[_IR] = []; } else if (output[_IR] != null && output[_IR][_CIR] != null) { contents[_IR] = de_ClusterIamRoleList(__getArrayIfSingleItem(output[_IR][_CIR]), context); } - if (output.PendingActions === "") { + if (String(output.PendingActions).trim() === "") { contents[_PAe] = []; } else if (output[_PAe] != null && output[_PAe][_me] != null) { contents[_PAe] = de_PendingActionsList(__getArrayIfSingleItem(output[_PAe][_me]), context); @@ -13768,7 +13768,7 @@ const de_Cluster = (output: any, context: __SerdeContext): Cluster => { if (output[_ERNONO] != null) { contents[_ERNONO] = __expectString(output[_ERNONO]); } - if (output.DeferredMaintenanceWindows === "") { + if (String(output.DeferredMaintenanceWindows).trim() === "") { contents[_DMW] = []; } else if (output[_DMW] != null && output[_DMW][_DMWe] != null) { contents[_DMW] = de_DeferredMaintenanceWindowsList(__getArrayIfSingleItem(output[_DMW][_DMWe]), context); @@ -13892,7 +13892,7 @@ const de_ClusterDbRevision = (output: any, context: __SerdeContext): ClusterDbRe if (output[_DRRD] != null) { contents[_DRRD] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_DRRD])); } - if (output.RevisionTargets === "") { + if (String(output.RevisionTargets).trim() === "") { contents[_RTev] = []; } else if (output[_RTev] != null && output[_RTev][_RTe] != null) { contents[_RTev] = de_RevisionTargetsList(__getArrayIfSingleItem(output[_RTev][_RTe]), context); @@ -13919,7 +13919,7 @@ const de_ClusterDbRevisionsMessage = (output: any, context: __SerdeContext): Clu if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ClusterDbRevisions === "") { + if (String(output.ClusterDbRevisions).trim() === "") { contents[_CDRl] = []; } else if (output[_CDRl] != null && output[_CDRl][_CDRlu] != null) { contents[_CDRl] = de_ClusterDbRevisionsList(__getArrayIfSingleItem(output[_CDRl][_CDRlu]), context); @@ -14047,7 +14047,7 @@ const de_ClusterParameterGroup = (output: any, context: __SerdeContext): Cluster if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -14074,7 +14074,7 @@ const de_ClusterParameterGroupAlreadyExistsFault = ( */ const de_ClusterParameterGroupDetails = (output: any, context: __SerdeContext): ClusterParameterGroupDetails => { const contents: any = {}; - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -14138,7 +14138,7 @@ const de_ClusterParameterGroupsMessage = (output: any, context: __SerdeContext): if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ParameterGroups === "") { + if (String(output.ParameterGroups).trim() === "") { contents[_PG] = []; } else if (output[_PG] != null && output[_PG][_CPGl] != null) { contents[_PG] = de_ParameterGroupList(__getArrayIfSingleItem(output[_PG][_CPGl]), context); @@ -14157,7 +14157,7 @@ const de_ClusterParameterGroupStatus = (output: any, context: __SerdeContext): C if (output[_PAS] != null) { contents[_PAS] = __expectString(output[_PAS]); } - if (output.ClusterParameterStatusList === "") { + if (String(output.ClusterParameterStatusList).trim() === "") { contents[_CPSL] = []; } else if (output[_CPSL] != null && output[_CPSL][_me] != null) { contents[_CPSL] = de_ClusterParameterStatusList(__getArrayIfSingleItem(output[_CPSL][_me]), context); @@ -14226,17 +14226,17 @@ const de_ClusterSecurityGroup = (output: any, context: __SerdeContext): ClusterS if (output[_D] != null) { contents[_D] = __expectString(output[_D]); } - if (output.EC2SecurityGroups === "") { + if (String(output.EC2SecurityGroups).trim() === "") { contents[_ECSG] = []; } else if (output[_ECSG] != null && output[_ECSG][_ECSGe] != null) { contents[_ECSG] = de_EC2SecurityGroupList(__getArrayIfSingleItem(output[_ECSG][_ECSGe]), context); } - if (output.IPRanges === "") { + if (String(output.IPRanges).trim() === "") { contents[_IPR] = []; } else if (output[_IPR] != null && output[_IPR][_IPRa] != null) { contents[_IPR] = de_IPRangeList(__getArrayIfSingleItem(output[_IPR][_IPRa]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -14294,7 +14294,7 @@ const de_ClusterSecurityGroupMessage = (output: any, context: __SerdeContext): C if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ClusterSecurityGroups === "") { + if (String(output.ClusterSecurityGroups).trim() === "") { contents[_CSG] = []; } else if (output[_CSG] != null && output[_CSG][_CSGl] != null) { contents[_CSG] = de_ClusterSecurityGroups(__getArrayIfSingleItem(output[_CSG][_CSGl]), context); @@ -14349,7 +14349,7 @@ const de_ClustersMessage = (output: any, context: __SerdeContext): ClustersMessa if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Clusters === "") { + if (String(output.Clusters).trim() === "") { contents[_Cl] = []; } else if (output[_Cl] != null && output[_Cl][_Clu] != null) { contents[_Cl] = de_ClusterList(__getArrayIfSingleItem(output[_Cl][_Clu]), context); @@ -14433,17 +14433,17 @@ const de_ClusterSubnetGroup = (output: any, context: __SerdeContext): ClusterSub if (output[_SGS] != null) { contents[_SGS] = __expectString(output[_SGS]); } - if (output.Subnets === "") { + if (String(output.Subnets).trim() === "") { contents[_Su] = []; } else if (output[_Su] != null && output[_Su][_Sub] != null) { contents[_Su] = de_SubnetList(__getArrayIfSingleItem(output[_Su][_Sub]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } - if (output.SupportedClusterIpAddressTypes === "") { + if (String(output.SupportedClusterIpAddressTypes).trim() === "") { contents[_SCIAT] = []; } else if (output[_SCIAT] != null && output[_SCIAT][_i] != null) { contents[_SCIAT] = de_ValueStringList(__getArrayIfSingleItem(output[_SCIAT][_i]), context); @@ -14473,7 +14473,7 @@ const de_ClusterSubnetGroupMessage = (output: any, context: __SerdeContext): Clu if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ClusterSubnetGroups === "") { + if (String(output.ClusterSubnetGroups).trim() === "") { contents[_CSGlu] = []; } else if (output[_CSGlu] != null && output[_CSGlu][_CSGlus] != null) { contents[_CSGlu] = de_ClusterSubnetGroups(__getArrayIfSingleItem(output[_CSGlu][_CSGlus]), context); @@ -14564,7 +14564,7 @@ const de_ClusterVersionsMessage = (output: any, context: __SerdeContext): Cluste if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ClusterVersions === "") { + if (String(output.ClusterVersions).trim() === "") { contents[_CVl] = []; } else if (output[_CVl] != null && output[_CVl][_CV] != null) { contents[_CVl] = de_ClusterVersionList(__getArrayIfSingleItem(output[_CVl][_CV]), context); @@ -14800,7 +14800,7 @@ const de_CustomDomainAssociationsMessage = (output: any, context: __SerdeContext if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Associations === "") { + if (String(output.Associations).trim() === "") { contents[_As] = []; } else if (output[_As] != null && output[_As][_Ass] != null) { contents[_As] = de_AssociationList(__getArrayIfSingleItem(output[_As][_Ass]), context); @@ -14836,7 +14836,7 @@ const de_DataShare = (output: any, context: __SerdeContext): DataShare => { if (output[_APAC] != null) { contents[_APAC] = __parseBoolean(output[_APAC]); } - if (output.DataShareAssociations === "") { + if (String(output.DataShareAssociations).trim() === "") { contents[_DSAat] = []; } else if (output[_DSAat] != null && output[_DSAat][_me] != null) { contents[_DSAat] = de_DataShareAssociationList(__getArrayIfSingleItem(output[_DSAat][_me]), context); @@ -14938,7 +14938,7 @@ const de_DefaultClusterParameters = (output: any, context: __SerdeContext): Defa if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Parameters === "") { + if (String(output.Parameters).trim() === "") { contents[_Pa] = []; } else if (output[_Pa] != null && output[_Pa][_Par] != null) { contents[_Pa] = de_ParametersList(__getArrayIfSingleItem(output[_Pa][_Par]), context); @@ -15074,7 +15074,7 @@ const de_DescribeAuthenticationProfilesResult = ( context: __SerdeContext ): DescribeAuthenticationProfilesResult => { const contents: any = {}; - if (output.AuthenticationProfiles === "") { + if (String(output.AuthenticationProfiles).trim() === "") { contents[_APu] = []; } else if (output[_APu] != null && output[_APu][_me] != null) { contents[_APu] = de_AuthenticationProfileList(__getArrayIfSingleItem(output[_APu][_me]), context); @@ -15090,7 +15090,7 @@ const de_DescribeDataSharesForConsumerResult = ( context: __SerdeContext ): DescribeDataSharesForConsumerResult => { const contents: any = {}; - if (output.DataShares === "") { + if (String(output.DataShares).trim() === "") { contents[_DSa] = []; } else if (output[_DSa] != null && output[_DSa][_me] != null) { contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); @@ -15109,7 +15109,7 @@ const de_DescribeDataSharesForProducerResult = ( context: __SerdeContext ): DescribeDataSharesForProducerResult => { const contents: any = {}; - if (output.DataShares === "") { + if (String(output.DataShares).trim() === "") { contents[_DSa] = []; } else if (output[_DSa] != null && output[_DSa][_me] != null) { contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); @@ -15125,7 +15125,7 @@ const de_DescribeDataSharesForProducerResult = ( */ const de_DescribeDataSharesResult = (output: any, context: __SerdeContext): DescribeDataSharesResult => { const contents: any = {}; - if (output.DataShares === "") { + if (String(output.DataShares).trim() === "") { contents[_DSa] = []; } else if (output[_DSa] != null && output[_DSa][_me] != null) { contents[_DSa] = de_DataShareList(__getArrayIfSingleItem(output[_DSa][_me]), context); @@ -15155,7 +15155,7 @@ const de_DescribeDefaultClusterParametersResult = ( */ const de_DescribePartnersOutputMessage = (output: any, context: __SerdeContext): DescribePartnersOutputMessage => { const contents: any = {}; - if (output.PartnerIntegrationInfoList === "") { + if (String(output.PartnerIntegrationInfoList).trim() === "") { contents[_PIIL] = []; } else if (output[_PIIL] != null && output[_PIIL][_PII] != null) { contents[_PIIL] = de_PartnerIntegrationInfoList(__getArrayIfSingleItem(output[_PIIL][_PII]), context); @@ -15171,7 +15171,7 @@ const de_DescribeRedshiftIdcApplicationsResult = ( context: __SerdeContext ): DescribeRedshiftIdcApplicationsResult => { const contents: any = {}; - if (output.RedshiftIdcApplications === "") { + if (String(output.RedshiftIdcApplications).trim() === "") { contents[_RIAe] = []; } else if (output[_RIAe] != null && output[_RIAe][_me] != null) { contents[_RIAe] = de_RedshiftIdcApplicationList(__getArrayIfSingleItem(output[_RIAe][_me]), context); @@ -15190,7 +15190,7 @@ const de_DescribeReservedNodeExchangeStatusOutputMessage = ( context: __SerdeContext ): DescribeReservedNodeExchangeStatusOutputMessage => { const contents: any = {}; - if (output.ReservedNodeExchangeStatusDetails === "") { + if (String(output.ReservedNodeExchangeStatusDetails).trim() === "") { contents[_RNESD] = []; } else if (output[_RNESD] != null && output[_RNESD][_RNES] != null) { contents[_RNESD] = de_ReservedNodeExchangeStatusList(__getArrayIfSingleItem(output[_RNESD][_RNES]), context); @@ -15209,7 +15209,7 @@ const de_DescribeSnapshotSchedulesOutputMessage = ( context: __SerdeContext ): DescribeSnapshotSchedulesOutputMessage => { const contents: any = {}; - if (output.SnapshotSchedules === "") { + if (String(output.SnapshotSchedules).trim() === "") { contents[_SS] = []; } else if (output[_SS] != null && output[_SS][_SSn] != null) { contents[_SS] = de_SnapshotScheduleList(__getArrayIfSingleItem(output[_SS][_SSn]), context); @@ -15245,7 +15245,7 @@ const de_EC2SecurityGroup = (output: any, context: __SerdeContext): EC2SecurityG if (output[_ECSGOI] != null) { contents[_ECSGOI] = __expectString(output[_ECSGOI]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -15324,7 +15324,7 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { if (output[_P] != null) { contents[_P] = __strictParseInt32(output[_P]) as number; } - if (output.VpcEndpoints === "") { + if (String(output.VpcEndpoints).trim() === "") { contents[_VE] = []; } else if (output[_VE] != null && output[_VE][_VEp] != null) { contents[_VE] = de_VpcEndpointsList(__getArrayIfSingleItem(output[_VE][_VEp]), context); @@ -15361,7 +15361,7 @@ const de_EndpointAccess = (output: any, context: __SerdeContext): EndpointAccess if (output[_Ad] != null) { contents[_Ad] = __expectString(output[_Ad]); } - if (output.VpcSecurityGroups === "") { + if (String(output.VpcSecurityGroups).trim() === "") { contents[_VSG] = []; } else if (output[_VSG] != null && output[_VSG][_VSGp] != null) { contents[_VSG] = de_VpcSecurityGroupMembershipList(__getArrayIfSingleItem(output[_VSG][_VSGp]), context); @@ -15388,7 +15388,7 @@ const de_EndpointAccesses = (output: any, context: __SerdeContext): EndpointAcce */ const de_EndpointAccessList = (output: any, context: __SerdeContext): EndpointAccessList => { const contents: any = {}; - if (output.EndpointAccessList === "") { + if (String(output.EndpointAccessList).trim() === "") { contents[_EAL] = []; } else if (output[_EAL] != null && output[_EAL][_me] != null) { contents[_EAL] = de_EndpointAccesses(__getArrayIfSingleItem(output[_EAL][_me]), context); @@ -15436,7 +15436,7 @@ const de_EndpointAuthorization = (output: any, context: __SerdeContext): Endpoin if (output[_AAVPC] != null) { contents[_AAVPC] = __parseBoolean(output[_AAVPC]); } - if (output.AllowedVPCs === "") { + if (String(output.AllowedVPCs).trim() === "") { contents[_AVPC] = []; } else if (output[_AVPC] != null && output[_AVPC][_VIpc] != null) { contents[_AVPC] = de_VpcIdentifierList(__getArrayIfSingleItem(output[_AVPC][_VIpc]), context); @@ -15466,7 +15466,7 @@ const de_EndpointAuthorizationAlreadyExistsFault = ( */ const de_EndpointAuthorizationList = (output: any, context: __SerdeContext): EndpointAuthorizationList => { const contents: any = {}; - if (output.EndpointAuthorizationList === "") { + if (String(output.EndpointAuthorizationList).trim() === "") { contents[_EALn] = []; } else if (output[_EALn] != null && output[_EALn][_me] != null) { contents[_EALn] = de_EndpointAuthorizations(__getArrayIfSingleItem(output[_EALn][_me]), context); @@ -15569,7 +15569,7 @@ const de_Event = (output: any, context: __SerdeContext): Event => { if (output[_Me] != null) { contents[_Me] = __expectString(output[_Me]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -15605,7 +15605,7 @@ const de_EventCategoriesMap = (output: any, context: __SerdeContext): EventCateg if (output[_ST] != null) { contents[_ST] = __expectString(output[_ST]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_EIM] != null) { contents[_Ev] = de_EventInfoMapList(__getArrayIfSingleItem(output[_Ev][_EIM]), context); @@ -15629,7 +15629,7 @@ const de_EventCategoriesMapList = (output: any, context: __SerdeContext): EventC */ const de_EventCategoriesMessage = (output: any, context: __SerdeContext): EventCategoriesMessage => { const contents: any = {}; - if (output.EventCategoriesMapList === "") { + if (String(output.EventCategoriesMapList).trim() === "") { contents[_ECML] = []; } else if (output[_ECML] != null && output[_ECML][_ECM] != null) { contents[_ECML] = de_EventCategoriesMapList(__getArrayIfSingleItem(output[_ECML][_ECM]), context); @@ -15645,7 +15645,7 @@ const de_EventInfoMap = (output: any, context: __SerdeContext): EventInfoMap => if (output[_EIv] != null) { contents[_EIv] = __expectString(output[_EIv]); } - if (output.EventCategories === "") { + if (String(output.EventCategories).trim() === "") { contents[_EC] = []; } else if (output[_EC] != null && output[_EC][_ECv] != null) { contents[_EC] = de_EventCategoriesList(__getArrayIfSingleItem(output[_EC][_ECv]), context); @@ -15689,7 +15689,7 @@ const de_EventsMessage = (output: any, context: __SerdeContext): EventsMessage = if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Events === "") { + if (String(output.Events).trim() === "") { contents[_Ev] = []; } else if (output[_Ev] != null && output[_Ev][_Eve] != null) { contents[_Ev] = de_EventList(__getArrayIfSingleItem(output[_Ev][_Eve]), context); @@ -15720,12 +15720,12 @@ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscr if (output[_ST] != null) { contents[_ST] = __expectString(output[_ST]); } - if (output.SourceIdsList === "") { + if (String(output.SourceIdsList).trim() === "") { contents[_SILo] = []; } else if (output[_SILo] != null && output[_SILo][_SIour] != null) { contents[_SILo] = de_SourceIdsList(__getArrayIfSingleItem(output[_SILo][_SIour]), context); } - if (output.EventCategoriesList === "") { + if (String(output.EventCategoriesList).trim() === "") { contents[_ECL] = []; } else if (output[_ECL] != null && output[_ECL][_ECv] != null) { contents[_ECL] = de_EventCategoriesList(__getArrayIfSingleItem(output[_ECL][_ECv]), context); @@ -15736,7 +15736,7 @@ const de_EventSubscription = (output: any, context: __SerdeContext): EventSubscr if (output[_En] != null) { contents[_En] = __parseBoolean(output[_En]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -15777,7 +15777,7 @@ const de_EventSubscriptionsMessage = (output: any, context: __SerdeContext): Eve if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.EventSubscriptionsList === "") { + if (String(output.EventSubscriptionsList).trim() === "") { contents[_ESL] = []; } else if (output[_ESL] != null && output[_ESL][_ES] != null) { contents[_ESL] = de_EventSubscriptionsList(__getArrayIfSingleItem(output[_ESL][_ES]), context); @@ -15807,7 +15807,7 @@ const de_GetReservedNodeExchangeConfigurationOptionsOutputMessage = ( if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ReservedNodeConfigurationOptionList === "") { + if (String(output.ReservedNodeConfigurationOptionList).trim() === "") { contents[_RNCOL] = []; } else if (output[_RNCOL] != null && output[_RNCOL][_RNCO] != null) { contents[_RNCOL] = de_ReservedNodeConfigurationOptionList(__getArrayIfSingleItem(output[_RNCOL][_RNCO]), context); @@ -15826,7 +15826,7 @@ const de_GetReservedNodeExchangeOfferingsOutputMessage = ( if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ReservedNodeOfferings === "") { + if (String(output.ReservedNodeOfferings).trim() === "") { contents[_RNO] = []; } else if (output[_RNO] != null && output[_RNO][_RNOe] != null) { contents[_RNO] = de_ReservedNodeOfferingList(__getArrayIfSingleItem(output[_RNO][_RNOe]), context); @@ -15856,7 +15856,7 @@ const de_HsmClientCertificate = (output: any, context: __SerdeContext): HsmClien if (output[_HCCPK] != null) { contents[_HCCPK] = __expectString(output[_HCCPK]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -15897,7 +15897,7 @@ const de_HsmClientCertificateMessage = (output: any, context: __SerdeContext): H if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.HsmClientCertificates === "") { + if (String(output.HsmClientCertificates).trim() === "") { contents[_HCCs] = []; } else if (output[_HCCs] != null && output[_HCCs][_HCC] != null) { contents[_HCCs] = de_HsmClientCertificateList(__getArrayIfSingleItem(output[_HCCs][_HCC]), context); @@ -15950,7 +15950,7 @@ const de_HsmConfiguration = (output: any, context: __SerdeContext): HsmConfigura if (output[_HPN] != null) { contents[_HPN] = __expectString(output[_HPN]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -15991,7 +15991,7 @@ const de_HsmConfigurationMessage = (output: any, context: __SerdeContext): HsmCo if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.HsmConfigurations === "") { + if (String(output.HsmConfigurations).trim() === "") { contents[_HCs] = []; } else if (output[_HCs] != null && output[_HCs][_HC] != null) { contents[_HCs] = de_HsmConfigurationList(__getArrayIfSingleItem(output[_HCs][_HC]), context); @@ -16091,7 +16091,7 @@ const de_InboundIntegration = (output: any, context: __SerdeContext): InboundInt if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_IE] != null) { contents[_Er] = de_IntegrationErrorList(__getArrayIfSingleItem(output[_Er][_IE]), context); @@ -16121,7 +16121,7 @@ const de_InboundIntegrationsMessage = (output: any, context: __SerdeContext): In if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.InboundIntegrations === "") { + if (String(output.InboundIntegrations).trim() === "") { contents[_II] = []; } else if (output[_II] != null && output[_II][_IIn] != null) { contents[_II] = de_InboundIntegrationList(__getArrayIfSingleItem(output[_II][_IIn]), context); @@ -16199,7 +16199,7 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Errors === "") { + if (String(output.Errors).trim() === "") { contents[_Er] = []; } else if (output[_Er] != null && output[_Er][_IE] != null) { contents[_Er] = de_IntegrationErrorList(__getArrayIfSingleItem(output[_Er][_IE]), context); @@ -16213,12 +16213,12 @@ const de_Integration = (output: any, context: __SerdeContext): Integration => { if (output[_KMSKI] != null) { contents[_KMSKI] = __expectString(output[_KMSKI]); } - if (output.AdditionalEncryptionContext === "") { + if (String(output.AdditionalEncryptionContext).trim() === "") { contents[_AEC] = {}; } else if (output[_AEC] != null && output[_AEC][_e] != null) { contents[_AEC] = de_EncryptionContextMap(__getArrayIfSingleItem(output[_AEC][_e]), context); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -16328,7 +16328,7 @@ const de_IntegrationsMessage = (output: any, context: __SerdeContext): Integrati if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Integrations === "") { + if (String(output.Integrations).trim() === "") { contents[_In] = []; } else if (output[_In] != null && output[_In][_Int] != null) { contents[_In] = de_IntegrationList(__getArrayIfSingleItem(output[_In][_Int]), context); @@ -16740,7 +16740,7 @@ const de_IPRange = (output: any, context: __SerdeContext): IPRange => { if (output[_CIDRIP] != null) { contents[_CIDRIP] = __expectString(output[_CIDRIP]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -16820,7 +16820,7 @@ const de_LimitExceededFault = (output: any, context: __SerdeContext): LimitExcee */ const de_ListRecommendationsResult = (output: any, context: __SerdeContext): ListRecommendationsResult => { const contents: any = {}; - if (output.Recommendations === "") { + if (String(output.Recommendations).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Rec] != null) { contents[_Re] = de_RecommendationList(__getArrayIfSingleItem(output[_Re][_Rec]), context); @@ -16857,7 +16857,7 @@ const de_LoggingStatus = (output: any, context: __SerdeContext): LoggingStatus = if (output[_LDT] != null) { contents[_LDT] = __expectString(output[_LDT]); } - if (output.LogExports === "") { + if (String(output.LogExports).trim() === "") { contents[_LE] = []; } else if (output[_LE] != null && output[_LE][_me] != null) { contents[_LE] = de_LogTypeList(__getArrayIfSingleItem(output[_LE][_me]), context); @@ -16887,7 +16887,7 @@ const de_MaintenanceTrack = (output: any, context: __SerdeContext): MaintenanceT if (output[_DV] != null) { contents[_DV] = __expectString(output[_DV]); } - if (output.UpdateTargets === "") { + if (String(output.UpdateTargets).trim() === "") { contents[_UT] = []; } else if (output[_UT] != null && output[_UT][_UTp] != null) { contents[_UT] = de_EligibleTracksToUpdateList(__getArrayIfSingleItem(output[_UT][_UTp]), context); @@ -17121,7 +17121,7 @@ const de_NodeConfigurationOptionList = (output: any, context: __SerdeContext): N */ const de_NodeConfigurationOptionsMessage = (output: any, context: __SerdeContext): NodeConfigurationOptionsMessage => { const contents: any = {}; - if (output.NodeConfigurationOptionList === "") { + if (String(output.NodeConfigurationOptionList).trim() === "") { contents[_NCOL] = []; } else if (output[_NCOL] != null && output[_NCOL][_NCO] != null) { contents[_NCOL] = de_NodeConfigurationOptionList(__getArrayIfSingleItem(output[_NCOL][_NCO]), context); @@ -17171,7 +17171,7 @@ const de_OrderableClusterOption = (output: any, context: __SerdeContext): Ordera if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.AvailabilityZones === "") { + if (String(output.AvailabilityZones).trim() === "") { contents[_AZv] = []; } else if (output[_AZv] != null && output[_AZv][_AZ] != null) { contents[_AZv] = de_AvailabilityZoneList(__getArrayIfSingleItem(output[_AZv][_AZ]), context); @@ -17195,7 +17195,7 @@ const de_OrderableClusterOptionsList = (output: any, context: __SerdeContext): O */ const de_OrderableClusterOptionsMessage = (output: any, context: __SerdeContext): OrderableClusterOptionsMessage => { const contents: any = {}; - if (output.OrderableClusterOptions === "") { + if (String(output.OrderableClusterOptions).trim() === "") { contents[_OCO] = []; } else if (output[_OCO] != null && output[_OCO][_OCOr] != null) { contents[_OCO] = de_OrderableClusterOptionsList(__getArrayIfSingleItem(output[_OCO][_OCOr]), context); @@ -17481,12 +17481,12 @@ const de_Recommendation = (output: any, context: __SerdeContext): Recommendation if (output[_RTeco] != null) { contents[_RTeco] = __expectString(output[_RTeco]); } - if (output.RecommendedActions === "") { + if (String(output.RecommendedActions).trim() === "") { contents[_RAe] = []; } else if (output[_RAe] != null && output[_RAe][_RAec] != null) { contents[_RAe] = de_RecommendedActionList(__getArrayIfSingleItem(output[_RAe][_RAec]), context); } - if (output.ReferenceLinks === "") { + if (String(output.ReferenceLinks).trim() === "") { contents[_RL] = []; } else if (output[_RL] != null && output[_RL][_RLe] != null) { contents[_RL] = de_ReferenceLinkList(__getArrayIfSingleItem(output[_RL][_RLe]), context); @@ -17590,12 +17590,12 @@ const de_RedshiftIdcApplication = (output: any, context: __SerdeContext): Redshi if (output[_IOS] != null) { contents[_IOS] = __expectString(output[_IOS]); } - if (output.AuthorizedTokenIssuerList === "") { + if (String(output.AuthorizedTokenIssuerList).trim() === "") { contents[_ATIL] = []; } else if (output[_ATIL] != null && output[_ATIL][_me] != null) { contents[_ATIL] = de_AuthorizedTokenIssuerList(__getArrayIfSingleItem(output[_ATIL][_me]), context); } - if (output.ServiceIntegrations === "") { + if (String(output.ServiceIntegrations).trim() === "") { contents[_SIe] = []; } else if (output[_SIe] != null && output[_SIe][_me] != null) { contents[_SIe] = de_ServiceIntegrationList(__getArrayIfSingleItem(output[_SIe][_me]), context); @@ -17730,7 +17730,7 @@ const de_ReservedNode = (output: any, context: __SerdeContext): ReservedNode => if (output[_OT] != null) { contents[_OT] = __expectString(output[_OT]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); @@ -17905,7 +17905,7 @@ const de_ReservedNodeOffering = (output: any, context: __SerdeContext): Reserved if (output[_OT] != null) { contents[_OT] = __expectString(output[_OT]); } - if (output.RecurringCharges === "") { + if (String(output.RecurringCharges).trim() === "") { contents[_RCec] = []; } else if (output[_RCec] != null && output[_RCec][_RCecu] != null) { contents[_RCec] = de_RecurringChargeList(__getArrayIfSingleItem(output[_RCec][_RCecu]), context); @@ -17949,7 +17949,7 @@ const de_ReservedNodeOfferingsMessage = (output: any, context: __SerdeContext): if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ReservedNodeOfferings === "") { + if (String(output.ReservedNodeOfferings).trim() === "") { contents[_RNO] = []; } else if (output[_RNO] != null && output[_RNO][_RNOe] != null) { contents[_RNO] = de_ReservedNodeOfferingList(__getArrayIfSingleItem(output[_RNO][_RNOe]), context); @@ -17976,7 +17976,7 @@ const de_ReservedNodesMessage = (output: any, context: __SerdeContext): Reserved if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ReservedNodes === "") { + if (String(output.ReservedNodes).trim() === "") { contents[_RNese] = []; } else if (output[_RNese] != null && output[_RNese][_RNes] != null) { contents[_RNese] = de_ReservedNodeList(__getArrayIfSingleItem(output[_RNese][_RNes]), context); @@ -18066,17 +18066,17 @@ const de_ResizeProgressMessage = (output: any, context: __SerdeContext): ResizeP if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.ImportTablesCompleted === "") { + if (String(output.ImportTablesCompleted).trim() === "") { contents[_ITC] = []; } else if (output[_ITC] != null && output[_ITC][_me] != null) { contents[_ITC] = de_ImportTablesCompleted(__getArrayIfSingleItem(output[_ITC][_me]), context); } - if (output.ImportTablesInProgress === "") { + if (String(output.ImportTablesInProgress).trim() === "") { contents[_ITIP] = []; } else if (output[_ITIP] != null && output[_ITIP][_me] != null) { contents[_ITIP] = de_ImportTablesInProgress(__getArrayIfSingleItem(output[_ITIP][_me]), context); } - if (output.ImportTablesNotStarted === "") { + if (String(output.ImportTablesNotStarted).trim() === "") { contents[_ITNS] = []; } else if (output[_ITNS] != null && output[_ITNS][_me] != null) { contents[_ITNS] = de_ImportTablesNotStarted(__getArrayIfSingleItem(output[_ITNS][_me]), context); @@ -18333,7 +18333,7 @@ const de_ScheduledAction = (output: any, context: __SerdeContext): ScheduledActi if (output[_Sta] != null) { contents[_Sta] = __expectString(output[_Sta]); } - if (output.NextInvocations === "") { + if (String(output.NextInvocations).trim() === "") { contents[_NI] = []; } else if (output[_NI] != null && output[_NI][_SAT] != null) { contents[_NI] = de_ScheduledActionTimeList(__getArrayIfSingleItem(output[_NI][_SAT]), context); @@ -18405,7 +18405,7 @@ const de_ScheduledActionsMessage = (output: any, context: __SerdeContext): Sched if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.ScheduledActions === "") { + if (String(output.ScheduledActions).trim() === "") { contents[_SAc] = []; } else if (output[_SAc] != null && output[_SAc][_SAch] != null) { contents[_SAc] = de_ScheduledActionList(__getArrayIfSingleItem(output[_SAc][_SAch]), context); @@ -18499,7 +18499,7 @@ const de_SecondaryClusterInfo = (output: any, context: __SerdeContext): Secondar if (output[_AZ] != null) { contents[_AZ] = __expectString(output[_AZ]); } - if (output.ClusterNodes === "") { + if (String(output.ClusterNodes).trim() === "") { contents[_CN] = []; } else if (output[_CN] != null && output[_CN][_me] != null) { contents[_CN] = de_ClusterNodesList(__getArrayIfSingleItem(output[_CN][_me]), context); @@ -18522,7 +18522,7 @@ const de_ServiceIntegrationList = (output: any, context: __SerdeContext): Servic * deserializeAws_queryServiceIntegrationsUnion */ const de_ServiceIntegrationsUnion = (output: any, context: __SerdeContext): ServiceIntegrationsUnion => { - if (output.LakeFormation === "") { + if (String(output.LakeFormation).trim() === "") { return { [_LF]: [], }; @@ -18531,7 +18531,7 @@ const de_ServiceIntegrationsUnion = (output: any, context: __SerdeContext): Serv LakeFormation: de_LakeFormationServiceIntegrations(__getArrayIfSingleItem(output[_LF][_me]), context), }; } - if (output.S3AccessGrants === "") { + if (String(output.S3AccessGrants).trim() === "") { return { [_SAG]: [], }; @@ -18602,7 +18602,7 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { if (output[_EWHSM] != null) { contents[_EWHSM] = __parseBoolean(output[_EWHSM]); } - if (output.AccountsWithRestoreAccess === "") { + if (String(output.AccountsWithRestoreAccess).trim() === "") { contents[_AWRAc] = []; } else if (output[_AWRAc] != null && output[_AWRAc][_AWRA] != null) { contents[_AWRAc] = de_AccountsWithRestoreAccessList(__getArrayIfSingleItem(output[_AWRAc][_AWRA]), context); @@ -18631,12 +18631,12 @@ const de_Snapshot = (output: any, context: __SerdeContext): Snapshot => { if (output[_SR] != null) { contents[_SR] = __expectString(output[_SR]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } - if (output.RestorableNodeTypes === "") { + if (String(output.RestorableNodeTypes).trim() === "") { contents[_RNT] = []; } else if (output[_RNT] != null && output[_RNT][_NT] != null) { contents[_RNT] = de_RestorableNodeTypeList(__getArrayIfSingleItem(output[_RNT][_NT]), context); @@ -18715,7 +18715,7 @@ const de_SnapshotCopyGrant = (output: any, context: __SerdeContext): SnapshotCop if (output[_KKI] != null) { contents[_KKI] = __expectString(output[_KKI]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -18756,7 +18756,7 @@ const de_SnapshotCopyGrantMessage = (output: any, context: __SerdeContext): Snap if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.SnapshotCopyGrants === "") { + if (String(output.SnapshotCopyGrants).trim() === "") { contents[_SCGn] = []; } else if (output[_SCGn] != null && output[_SCGn][_SCG] != null) { contents[_SCGn] = de_SnapshotCopyGrantList(__getArrayIfSingleItem(output[_SCGn][_SCG]), context); @@ -18839,7 +18839,7 @@ const de_SnapshotMessage = (output: any, context: __SerdeContext): SnapshotMessa if (output[_M] != null) { contents[_M] = __expectString(output[_M]); } - if (output.Snapshots === "") { + if (String(output.Snapshots).trim() === "") { contents[_Sna] = []; } else if (output[_Sna] != null && output[_Sna][_Sn] != null) { contents[_Sna] = de_SnapshotList(__getArrayIfSingleItem(output[_Sna][_Sn]), context); @@ -18852,7 +18852,7 @@ const de_SnapshotMessage = (output: any, context: __SerdeContext): SnapshotMessa */ const de_SnapshotSchedule = (output: any, context: __SerdeContext): SnapshotSchedule => { const contents: any = {}; - if (output.ScheduleDefinitions === "") { + if (String(output.ScheduleDefinitions).trim() === "") { contents[_SD] = []; } else if (output[_SD] != null && output[_SD][_SDch] != null) { contents[_SD] = de_ScheduleDefinitionList(__getArrayIfSingleItem(output[_SD][_SDch]), context); @@ -18863,12 +18863,12 @@ const de_SnapshotSchedule = (output: any, context: __SerdeContext): SnapshotSche if (output[_SDc] != null) { contents[_SDc] = __expectString(output[_SDc]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); } - if (output.NextInvocations === "") { + if (String(output.NextInvocations).trim() === "") { contents[_NI] = []; } else if (output[_NI] != null && output[_NI][_STna] != null) { contents[_NI] = de_ScheduledSnapshotTimeList(__getArrayIfSingleItem(output[_NI][_STna]), context); @@ -18876,7 +18876,7 @@ const de_SnapshotSchedule = (output: any, context: __SerdeContext): SnapshotSche if (output[_ACC] != null) { contents[_ACC] = __strictParseInt32(output[_ACC]) as number; } - if (output.AssociatedClusters === "") { + if (String(output.AssociatedClusters).trim() === "") { contents[_ACs] = []; } else if (output[_ACs] != null && output[_ACs][_CATS] != null) { contents[_ACs] = de_AssociatedClusterList(__getArrayIfSingleItem(output[_ACs][_CATS]), context); @@ -19238,7 +19238,7 @@ const de_TableRestoreStatusList = (output: any, context: __SerdeContext): TableR */ const de_TableRestoreStatusMessage = (output: any, context: __SerdeContext): TableRestoreStatusMessage => { const contents: any = {}; - if (output.TableRestoreStatusDetails === "") { + if (String(output.TableRestoreStatusDetails).trim() === "") { contents[_TRSD] = []; } else if (output[_TRSD] != null && output[_TRSD][_TRS] != null) { contents[_TRSD] = de_TableRestoreStatusList(__getArrayIfSingleItem(output[_TRSD][_TRS]), context); @@ -19296,7 +19296,7 @@ const de_TaggedResourceList = (output: any, context: __SerdeContext): TaggedReso */ const de_TaggedResourceListMessage = (output: any, context: __SerdeContext): TaggedResourceListMessage => { const contents: any = {}; - if (output.TaggedResources === "") { + if (String(output.TaggedResources).trim() === "") { contents[_TR] = []; } else if (output[_TR] != null && output[_TR][_TRa] != null) { contents[_TR] = de_TaggedResourceList(__getArrayIfSingleItem(output[_TR][_TRa]), context); @@ -19345,7 +19345,7 @@ const de_TrackList = (output: any, context: __SerdeContext): MaintenanceTrack[] */ const de_TrackListMessage = (output: any, context: __SerdeContext): TrackListMessage => { const contents: any = {}; - if (output.MaintenanceTracks === "") { + if (String(output.MaintenanceTracks).trim() === "") { contents[_MT] = []; } else if (output[_MT] != null && output[_MT][_MTa] != null) { contents[_MT] = de_TrackList(__getArrayIfSingleItem(output[_MT][_MTa]), context); @@ -19425,7 +19425,7 @@ const de_UpdateTarget = (output: any, context: __SerdeContext): UpdateTarget => if (output[_DV] != null) { contents[_DV] = __expectString(output[_DV]); } - if (output.SupportedOperations === "") { + if (String(output.SupportedOperations).trim() === "") { contents[_SOu] = []; } else if (output[_SOu] != null && output[_SOu][_SOup] != null) { contents[_SOu] = de_SupportedOperationList(__getArrayIfSingleItem(output[_SOu][_SOup]), context); @@ -19459,7 +19459,7 @@ const de_UsageLimit = (output: any, context: __SerdeContext): UsageLimit => { if (output[_BA] != null) { contents[_BA] = __expectString(output[_BA]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_Ta] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(output[_T][_Ta]), context); @@ -19483,7 +19483,7 @@ const de_UsageLimitAlreadyExistsFault = (output: any, context: __SerdeContext): */ const de_UsageLimitList = (output: any, context: __SerdeContext): UsageLimitList => { const contents: any = {}; - if (output.UsageLimits === "") { + if (String(output.UsageLimits).trim() === "") { contents[_UL] = []; } else if (output[_UL] != null && output[_UL][_me] != null) { contents[_UL] = de_UsageLimits(__getArrayIfSingleItem(output[_UL][_me]), context); @@ -19538,7 +19538,7 @@ const de_VpcEndpoint = (output: any, context: __SerdeContext): VpcEndpoint => { if (output[_VIp] != null) { contents[_VIp] = __expectString(output[_VIp]); } - if (output.NetworkInterfaces === "") { + if (String(output.NetworkInterfaces).trim() === "") { contents[_NIe] = []; } else if (output[_NIe] != null && output[_NIe][_NIet] != null) { contents[_NIe] = de_NetworkInterfaceList(__getArrayIfSingleItem(output[_NIe][_NIet]), context); diff --git a/clients/client-route-53/src/protocols/Aws_restXml.ts b/clients/client-route-53/src/protocols/Aws_restXml.ts index 56671fbd484e..a04fb03ba45c 100644 --- a/clients/client-route-53/src/protocols/Aws_restXml.ts +++ b/clients/client-route-53/src/protocols/Aws_restXml.ts @@ -2462,7 +2462,7 @@ export const de_GetCheckerIpRangesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CheckerIpRanges === "") { + if (String(data.CheckerIpRanges).trim() === "") { contents[_CIR] = []; } else if (data[_CIR] != null && data[_CIR][_me] != null) { contents[_CIR] = de_CheckerIpRanges(__getArrayIfSingleItem(data[_CIR][_me]), context); @@ -2484,7 +2484,7 @@ export const de_GetDNSSECCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.KeySigningKeys === "") { + if (String(data.KeySigningKeys).trim() === "") { contents[_KSKe] = []; } else if (data[_KSKe] != null && data[_KSKe][_me] != null) { contents[_KSKe] = de_KeySigningKeys(__getArrayIfSingleItem(data[_KSKe][_me]), context); @@ -2569,7 +2569,7 @@ export const de_GetHealthCheckLastFailureReasonCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.HealthCheckObservations === "") { + if (String(data.HealthCheckObservations).trim() === "") { contents[_HCO] = []; } else if (data[_HCO] != null && data[_HCO][_HCOe] != null) { contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context); @@ -2591,7 +2591,7 @@ export const de_GetHealthCheckStatusCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.HealthCheckObservations === "") { + if (String(data.HealthCheckObservations).trim() === "") { contents[_HCO] = []; } else if (data[_HCO] != null && data[_HCO][_HCOe] != null) { contents[_HCO] = de_HealthCheckObservations(__getArrayIfSingleItem(data[_HCO][_HCOe]), context); @@ -2619,7 +2619,7 @@ export const de_GetHostedZoneCommand = async ( if (data[_HZ] != null) { contents[_HZ] = de_HostedZone(data[_HZ], context); } - if (data.VPCs === "") { + if (String(data.VPCs).trim() === "") { contents[_VPCs] = []; } else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) { contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context); @@ -2807,7 +2807,7 @@ export const de_ListCidrBlocksCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CidrBlocks === "") { + if (String(data.CidrBlocks).trim() === "") { contents[_CBi] = []; } else if (data[_CBi] != null && data[_CBi][_me] != null) { contents[_CBi] = de_CidrBlockSummaries(__getArrayIfSingleItem(data[_CBi][_me]), context); @@ -2832,7 +2832,7 @@ export const de_ListCidrCollectionsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CidrCollections === "") { + if (String(data.CidrCollections).trim() === "") { contents[_CCi] = []; } else if (data[_CCi] != null && data[_CCi][_me] != null) { contents[_CCi] = de_CollectionSummaries(__getArrayIfSingleItem(data[_CCi][_me]), context); @@ -2857,7 +2857,7 @@ export const de_ListCidrLocationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CidrLocations === "") { + if (String(data.CidrLocations).trim() === "") { contents[_CL] = []; } else if (data[_CL] != null && data[_CL][_me] != null) { contents[_CL] = de_LocationSummaries(__getArrayIfSingleItem(data[_CL][_me]), context); @@ -2882,7 +2882,7 @@ export const de_ListGeoLocationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.GeoLocationDetailsList === "") { + if (String(data.GeoLocationDetailsList).trim() === "") { contents[_GLDL] = []; } else if (data[_GLDL] != null && data[_GLDL][_GLD] != null) { contents[_GLDL] = de_GeoLocationDetailsList(__getArrayIfSingleItem(data[_GLDL][_GLD]), context); @@ -2919,7 +2919,7 @@ export const de_ListHealthChecksCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.HealthChecks === "") { + if (String(data.HealthChecks).trim() === "") { contents[_HCe] = []; } else if (data[_HCe] != null && data[_HCe][_HC] != null) { contents[_HCe] = de_HealthChecks(__getArrayIfSingleItem(data[_HCe][_HC]), context); @@ -2953,7 +2953,7 @@ export const de_ListHostedZonesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.HostedZones === "") { + if (String(data.HostedZones).trim() === "") { contents[_HZo] = []; } else if (data[_HZo] != null && data[_HZo][_HZ] != null) { contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context); @@ -2993,7 +2993,7 @@ export const de_ListHostedZonesByNameCommand = async ( if (data[_HZI] != null) { contents[_HZI] = __expectString(data[_HZI]); } - if (data.HostedZones === "") { + if (String(data.HostedZones).trim() === "") { contents[_HZo] = []; } else if (data[_HZo] != null && data[_HZo][_HZ] != null) { contents[_HZo] = de_HostedZones(__getArrayIfSingleItem(data[_HZo][_HZ]), context); @@ -3027,7 +3027,7 @@ export const de_ListHostedZonesByVPCCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.HostedZoneSummaries === "") { + if (String(data.HostedZoneSummaries).trim() === "") { contents[_HZS] = []; } else if (data[_HZS] != null && data[_HZS][_HZSo] != null) { contents[_HZS] = de_HostedZoneSummaries(__getArrayIfSingleItem(data[_HZS][_HZSo]), context); @@ -3058,7 +3058,7 @@ export const de_ListQueryLoggingConfigsCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.QueryLoggingConfigs === "") { + if (String(data.QueryLoggingConfigs).trim() === "") { contents[_QLCu] = []; } else if (data[_QLCu] != null && data[_QLCu][_QLC] != null) { contents[_QLCu] = de_QueryLoggingConfigs(__getArrayIfSingleItem(data[_QLCu][_QLC]), context); @@ -3095,7 +3095,7 @@ export const de_ListResourceRecordSetsCommand = async ( if (data[_NRT] != null) { contents[_NRT] = __expectString(data[_NRT]); } - if (data.ResourceRecordSets === "") { + if (String(data.ResourceRecordSets).trim() === "") { contents[_RRS] = []; } else if (data[_RRS] != null && data[_RRS][_RRSe] != null) { contents[_RRS] = de_ResourceRecordSets(__getArrayIfSingleItem(data[_RRS][_RRSe]), context); @@ -3117,7 +3117,7 @@ export const de_ListReusableDelegationSetsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.DelegationSets === "") { + if (String(data.DelegationSets).trim() === "") { contents[_DSe] = []; } else if (data[_DSe] != null && data[_DSe][_DS] != null) { contents[_DSe] = de_DelegationSets(__getArrayIfSingleItem(data[_DSe][_DS]), context); @@ -3171,7 +3171,7 @@ export const de_ListTagsForResourcesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.ResourceTagSets === "") { + if (String(data.ResourceTagSets).trim() === "") { contents[_RTSe] = []; } else if (data[_RTSe] != null && data[_RTSe][_RTS] != null) { contents[_RTSe] = de_ResourceTagSetList(__getArrayIfSingleItem(data[_RTSe][_RTS]), context); @@ -3202,7 +3202,7 @@ export const de_ListTrafficPoliciesCommand = async ( if (data[_TPIM] != null) { contents[_TPIM] = __expectString(data[_TPIM]); } - if (data.TrafficPolicySummaries === "") { + if (String(data.TrafficPolicySummaries).trim() === "") { contents[_TPS] = []; } else if (data[_TPS] != null && data[_TPS][_TPSr] != null) { contents[_TPS] = de_TrafficPolicySummaries(__getArrayIfSingleItem(data[_TPS][_TPSr]), context); @@ -3239,7 +3239,7 @@ export const de_ListTrafficPolicyInstancesCommand = async ( if (data[_TPITM] != null) { contents[_TPITM] = __expectString(data[_TPITM]); } - if (data.TrafficPolicyInstances === "") { + if (String(data.TrafficPolicyInstances).trim() === "") { contents[_TPIra] = []; } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); @@ -3273,7 +3273,7 @@ export const de_ListTrafficPolicyInstancesByHostedZoneCommand = async ( if (data[_TPITM] != null) { contents[_TPITM] = __expectString(data[_TPITM]); } - if (data.TrafficPolicyInstances === "") { + if (String(data.TrafficPolicyInstances).trim() === "") { contents[_TPIra] = []; } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); @@ -3310,7 +3310,7 @@ export const de_ListTrafficPolicyInstancesByPolicyCommand = async ( if (data[_TPITM] != null) { contents[_TPITM] = __expectString(data[_TPITM]); } - if (data.TrafficPolicyInstances === "") { + if (String(data.TrafficPolicyInstances).trim() === "") { contents[_TPIra] = []; } else if (data[_TPIra] != null && data[_TPIra][_TPIr] != null) { contents[_TPIra] = de_TrafficPolicyInstances(__getArrayIfSingleItem(data[_TPIra][_TPIr]), context); @@ -3338,7 +3338,7 @@ export const de_ListTrafficPolicyVersionsCommand = async ( if (data[_MI] != null) { contents[_MI] = __strictParseInt32(data[_MI]) as number; } - if (data.TrafficPolicies === "") { + if (String(data.TrafficPolicies).trim() === "") { contents[_TPr] = []; } else if (data[_TPr] != null && data[_TPr][_TP] != null) { contents[_TPr] = de_TrafficPolicies(__getArrayIfSingleItem(data[_TPr][_TP]), context); @@ -3369,7 +3369,7 @@ export const de_ListVPCAssociationAuthorizationsCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.VPCs === "") { + if (String(data.VPCs).trim() === "") { contents[_VPCs] = []; } else if (data[_VPCs] != null && data[_VPCs][_VPC] != null) { contents[_VPCs] = de_VPCs(__getArrayIfSingleItem(data[_VPCs][_VPC]), context); @@ -3397,7 +3397,7 @@ export const de_TestDNSAnswerCommand = async ( if (data[_Pr] != null) { contents[_Pr] = __expectString(data[_Pr]); } - if (data.RecordData === "") { + if (String(data.RecordData).trim() === "") { contents[_RDe] = []; } else if (data[_RDe] != null && data[_RDe][_RDE] != null) { contents[_RDe] = de_RecordData(__getArrayIfSingleItem(data[_RDe][_RDE]), context); @@ -4163,7 +4163,7 @@ const de_InvalidChangeBatchRes = async (parsedOutput: any, context: __SerdeConte if (data[_mes] != null) { contents[_mes] = __expectString(data[_mes]); } - if (data.messages === "") { + if (String(data.messages).trim() === "") { contents[_mess] = []; } else if (data[_mess] != null && data[_mess][_Me] != null) { contents[_mess] = de_ErrorMessages(__getArrayIfSingleItem(data[_mess][_Me]), context); @@ -5518,7 +5518,7 @@ const de_CloudWatchAlarmConfiguration = (output: any, context: __SerdeContext): if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Dimensions === "") { + if (String(output.Dimensions).trim() === "") { contents[_Dim] = []; } else if (output[_Dim] != null && output[_Dim][_Dime] != null) { contents[_Dim] = de_DimensionList(__getArrayIfSingleItem(output[_Dim][_Dime]), context); @@ -5582,7 +5582,7 @@ const de_DelegationSet = (output: any, context: __SerdeContext): DelegationSet = if (output[_CR] != null) { contents[_CR] = __expectString(output[_CR]); } - if (output.NameServers === "") { + if (String(output.NameServers).trim() === "") { contents[_NS] = []; } else if (output[_NS] != null && output[_NS][_NSa] != null) { contents[_NS] = de_DelegationSetNameServers(__getArrayIfSingleItem(output[_NS][_NSa]), context); @@ -5803,7 +5803,7 @@ const de_HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheck if (output[_HT] != null) { contents[_HT] = __strictParseInt32(output[_HT]) as number; } - if (output.ChildHealthChecks === "") { + if (String(output.ChildHealthChecks).trim() === "") { contents[_CHC] = []; } else if (output[_CHC] != null && output[_CHC][_CHCh] != null) { contents[_CHC] = de_ChildHealthCheckList(__getArrayIfSingleItem(output[_CHC][_CHCh]), context); @@ -5811,7 +5811,7 @@ const de_HealthCheckConfig = (output: any, context: __SerdeContext): HealthCheck if (output[_ESNI] != null) { contents[_ESNI] = __parseBoolean(output[_ESNI]); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_R] = []; } else if (output[_R] != null && output[_R][_Re] != null) { contents[_R] = de_HealthCheckRegionList(__getArrayIfSingleItem(output[_R][_Re]), context); @@ -6181,7 +6181,7 @@ const de_ResourceRecordSet = (output: any, context: __SerdeContext): ResourceRec if (output[_TTL] != null) { contents[_TTL] = __strictParseLong(output[_TTL]) as number; } - if (output.ResourceRecords === "") { + if (String(output.ResourceRecords).trim() === "") { contents[_RRe] = []; } else if (output[_RRe] != null && output[_RRe][_RR] != null) { contents[_RRe] = de_ResourceRecords(__getArrayIfSingleItem(output[_RRe][_RR]), context); @@ -6226,7 +6226,7 @@ const de_ResourceTagSet = (output: any, context: __SerdeContext): ResourceTagSet if (output[_RI] != null) { contents[_RI] = __expectString(output[_RI]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Tag] = []; } else if (output[_Tag] != null && output[_Tag][_Ta] != null) { contents[_Tag] = de_TagList(__getArrayIfSingleItem(output[_Tag][_Ta]), context); diff --git a/clients/client-s3-control/src/protocols/Aws_restXml.ts b/clients/client-s3-control/src/protocols/Aws_restXml.ts index 811510b62ad9..bf6cde4e5603 100644 --- a/clients/client-s3-control/src/protocols/Aws_restXml.ts +++ b/clients/client-s3-control/src/protocols/Aws_restXml.ts @@ -3445,7 +3445,7 @@ export const de_GetAccessPointCommand = async ( if (data[_DST] != null) { contents[_DST] = __expectString(data[_DST]); } - if (data.Endpoints === "") { + if (String(data.Endpoints).trim() === "") { contents[_E] = {}; } else if (data[_E] != null && data[_E][_e] != null) { contents[_E] = de_Endpoints(__getArrayIfSingleItem(data[_E][_e]), context); @@ -3654,7 +3654,7 @@ export const de_GetBucketLifecycleConfigurationCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Rules === "") { + if (String(data.Rules).trim() === "") { contents[_Ru] = []; } else if (data[_Ru] != null && data[_Ru][_Rul] != null) { contents[_Ru] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru][_Rul]), context); @@ -3716,7 +3716,7 @@ export const de_GetBucketTaggingCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.TagSet === "") { + if (String(data.TagSet).trim() === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_m] != null) { contents[_TS] = de_S3TagSet(__getArrayIfSingleItem(data[_TS][_m]), context); @@ -3787,7 +3787,7 @@ export const de_GetJobTaggingCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Tags === "") { + if (String(data.Tags).trim() === "") { contents[_T] = []; } else if (data[_T] != null && data[_T][_m] != null) { contents[_T] = de_S3TagSet(__getArrayIfSingleItem(data[_T][_m]), context); @@ -3872,7 +3872,7 @@ export const de_GetMultiRegionAccessPointRoutesCommand = async ( if (data[_Mr] != null) { contents[_Mr] = __expectString(data[_Mr]); } - if (data.Routes === "") { + if (String(data.Routes).trim() === "") { contents[_Ro] = []; } else if (data[_Ro] != null && data[_Ro][_Rou] != null) { contents[_Ro] = de_RouteList(__getArrayIfSingleItem(data[_Ro][_Rou]), context); @@ -3930,7 +3930,7 @@ export const de_GetStorageLensConfigurationTaggingCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Tags === "") { + if (String(data.Tags).trim() === "") { contents[_T] = []; } else if (data[_T] != null && data[_T][_Tag] != null) { contents[_T] = de_StorageLensTags(__getArrayIfSingleItem(data[_T][_Tag]), context); @@ -3970,7 +3970,7 @@ export const de_ListAccessGrantsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessGrantsList === "") { + if (String(data.AccessGrantsList).trim() === "") { contents[_AGL] = []; } else if (data[_AGL] != null && data[_AGL][_AG] != null) { contents[_AGL] = de_AccessGrantsList(__getArrayIfSingleItem(data[_AGL][_AG]), context); @@ -3995,7 +3995,7 @@ export const de_ListAccessGrantsInstancesCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessGrantsInstancesList === "") { + if (String(data.AccessGrantsInstancesList).trim() === "") { contents[_AGIL] = []; } else if (data[_AGIL] != null && data[_AGIL][_AGIc] != null) { contents[_AGIL] = de_AccessGrantsInstancesList(__getArrayIfSingleItem(data[_AGIL][_AGIc]), context); @@ -4020,7 +4020,7 @@ export const de_ListAccessGrantsLocationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessGrantsLocationsList === "") { + if (String(data.AccessGrantsLocationsList).trim() === "") { contents[_AGLL] = []; } else if (data[_AGLL] != null && data[_AGLL][_AGLc] != null) { contents[_AGLL] = de_AccessGrantsLocationsList(__getArrayIfSingleItem(data[_AGLL][_AGLc]), context); @@ -4045,7 +4045,7 @@ export const de_ListAccessPointsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessPointList === "") { + if (String(data.AccessPointList).trim() === "") { contents[_APL] = []; } else if (data[_APL] != null && data[_APL][_AP] != null) { contents[_APL] = de_AccessPointList(__getArrayIfSingleItem(data[_APL][_AP]), context); @@ -4070,7 +4070,7 @@ export const de_ListAccessPointsForDirectoryBucketsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessPointList === "") { + if (String(data.AccessPointList).trim() === "") { contents[_APL] = []; } else if (data[_APL] != null && data[_APL][_AP] != null) { contents[_APL] = de_AccessPointList(__getArrayIfSingleItem(data[_APL][_AP]), context); @@ -4098,7 +4098,7 @@ export const de_ListAccessPointsForObjectLambdaCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.ObjectLambdaAccessPointList === "") { + if (String(data.ObjectLambdaAccessPointList).trim() === "") { contents[_OLAPL] = []; } else if (data[_OLAPL] != null && data[_OLAPL][_OLAP] != null) { contents[_OLAPL] = de_ObjectLambdaAccessPointList(__getArrayIfSingleItem(data[_OLAPL][_OLAP]), context); @@ -4120,7 +4120,7 @@ export const de_ListCallerAccessGrantsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CallerAccessGrantsList === "") { + if (String(data.CallerAccessGrantsList).trim() === "") { contents[_CAGL] = []; } else if (data[_CAGL] != null && data[_CAGL][_AG] != null) { contents[_CAGL] = de_CallerAccessGrantsList(__getArrayIfSingleItem(data[_CAGL][_AG]), context); @@ -4145,7 +4145,7 @@ export const de_ListJobsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Jobs === "") { + if (String(data.Jobs).trim() === "") { contents[_Jo] = []; } else if (data[_Jo] != null && data[_Jo][_m] != null) { contents[_Jo] = de_JobListDescriptorList(__getArrayIfSingleItem(data[_Jo][_m]), context); @@ -4170,7 +4170,7 @@ export const de_ListMultiRegionAccessPointsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessPoints === "") { + if (String(data.AccessPoints).trim() === "") { contents[_APc] = []; } else if (data[_APc] != null && data[_APc][_AP] != null) { contents[_APc] = de_MultiRegionAccessPointReportList(__getArrayIfSingleItem(data[_APc][_AP]), context); @@ -4198,7 +4198,7 @@ export const de_ListRegionalBucketsCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.RegionalBucketList === "") { + if (String(data.RegionalBucketList).trim() === "") { contents[_RBL] = []; } else if (data[_RBL] != null && data[_RBL][_RB] != null) { contents[_RBL] = de_RegionalBucketList(__getArrayIfSingleItem(data[_RBL][_RB]), context); @@ -4223,7 +4223,7 @@ export const de_ListStorageLensConfigurationsCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.StorageLensConfiguration === "") { + if (String(data.StorageLensConfiguration).trim() === "") { contents[_SLCL] = []; } else if (data[_SLC] != null) { contents[_SLCL] = de_StorageLensConfigurationList(__getArrayIfSingleItem(data[_SLC]), context); @@ -4248,7 +4248,7 @@ export const de_ListStorageLensGroupsCommand = async ( if (data[_NT] != null) { contents[_NT] = __expectString(data[_NT]); } - if (data.StorageLensGroup === "") { + if (String(data.StorageLensGroup).trim() === "") { contents[_SLGL] = []; } else if (data[_SLG] != null) { contents[_SLGL] = de_StorageLensGroupList(__getArrayIfSingleItem(data[_SLG]), context); @@ -4270,7 +4270,7 @@ export const de_ListTagsForResourceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Tags === "") { + if (String(data.Tags).trim() === "") { contents[_T] = []; } else if (data[_T] != null && data[_T][_Tag] != null) { contents[_T] = de_TagList(__getArrayIfSingleItem(data[_T][_Tag]), context); @@ -7348,7 +7348,7 @@ const de_CreateMultiRegionAccessPointInput = ( if (output[_PAB] != null) { contents[_PAB] = de_PublicAccessBlockConfiguration(output[_PAB], context); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Reg] != null) { contents[_Re] = de_RegionCreationList(__getArrayIfSingleItem(output[_Re][_Reg]), context); @@ -7495,12 +7495,12 @@ const de_EstablishedMultiRegionAccessPointPolicy = ( */ const de__Exclude = (output: any, context: __SerdeContext): _Exclude => { const contents: any = {}; - if (output.Buckets === "") { + if (String(output.Buckets).trim() === "") { contents[_Bu] = []; } else if (output[_Bu] != null && output[_Bu][_Ar] != null) { contents[_Bu] = de_Buckets(__getArrayIfSingleItem(output[_Bu][_Ar]), context); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Reg] != null) { contents[_Re] = de_Regions(__getArrayIfSingleItem(output[_Re][_Reg]), context); @@ -7552,12 +7552,12 @@ const de_Grantee = (output: any, context: __SerdeContext): Grantee => { */ const de_Include = (output: any, context: __SerdeContext): Include => { const contents: any = {}; - if (output.Buckets === "") { + if (String(output.Buckets).trim() === "") { contents[_Bu] = []; } else if (output[_Bu] != null && output[_Bu][_Ar] != null) { contents[_Bu] = de_Buckets(__getArrayIfSingleItem(output[_Bu][_Ar]), context); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Reg] != null) { contents[_Re] = de_Regions(__getArrayIfSingleItem(output[_Re][_Reg]), context); @@ -7600,7 +7600,7 @@ const de_JobDescriptor = (output: any, context: __SerdeContext): JobDescriptor = if (output[_SUR] != null) { contents[_SUR] = __expectString(output[_SUR]); } - if (output.FailureReasons === "") { + if (String(output.FailureReasons).trim() === "") { contents[_FR] = []; } else if (output[_FR] != null && output[_FR][_m] != null) { contents[_FR] = de_JobFailureList(__getArrayIfSingleItem(output[_FR][_m]), context); @@ -7623,7 +7623,7 @@ const de_JobDescriptor = (output: any, context: __SerdeContext): JobDescriptor = if (output[_SCu] != null) { contents[_SCu] = __expectString(output[_SCu]); } - if (output.ManifestGenerator === "") { + if (String(output.ManifestGenerator).trim() === "") { // Pass empty tags. } else if (output[_MG] != null) { contents[_MG] = de_JobManifestGenerator(__expectUnion(output[_MG]), context); @@ -7753,7 +7753,7 @@ const de_JobManifestGeneratorFilter = (output: any, context: __SerdeContext): Jo if (output[_CB] != null) { contents[_CB] = __expectNonNull(__parseRfc3339DateTimeWithOffset(output[_CB])); } - if (output.ObjectReplicationStatuses === "") { + if (String(output.ObjectReplicationStatuses).trim() === "") { contents[_ORS] = []; } else if (output[_ORS] != null && output[_ORS][_m] != null) { contents[_ORS] = de_ReplicationStatusFilterList(__getArrayIfSingleItem(output[_ORS][_m]), context); @@ -7767,12 +7767,12 @@ const de_JobManifestGeneratorFilter = (output: any, context: __SerdeContext): Jo if (output[_OSLTB] != null) { contents[_OSLTB] = __strictParseLong(output[_OSLTB]) as number; } - if (output.MatchAnyStorageClass === "") { + if (String(output.MatchAnyStorageClass).trim() === "") { contents[_MASC] = []; } else if (output[_MASC] != null && output[_MASC][_m] != null) { contents[_MASC] = de_StorageClassList(__getArrayIfSingleItem(output[_MASC][_m]), context); } - if (output.MatchAnyObjectEncryption === "") { + if (String(output.MatchAnyObjectEncryption).trim() === "") { contents[_MAOE] = []; } else if (output[_MAOE] != null && output[_MAOE][_OE] != null) { contents[_MAOE] = de_ObjectEncryptionFilterList(__getArrayIfSingleItem(output[_MAOE][_OE]), context); @@ -7805,7 +7805,7 @@ const de_JobManifestSpec = (output: any, context: __SerdeContext): JobManifestSp if (output[_F] != null) { contents[_F] = __expectString(output[_F]); } - if (output.Fields === "") { + if (String(output.Fields).trim() === "") { contents[_Fi] = []; } else if (output[_Fi] != null && output[_Fi][_m] != null) { contents[_Fi] = de_JobManifestFieldList(__getArrayIfSingleItem(output[_Fi][_m]), context); @@ -7913,17 +7913,17 @@ const de_JobTimers = (output: any, context: __SerdeContext): JobTimers => { */ const de_KeyNameConstraint = (output: any, context: __SerdeContext): KeyNameConstraint => { const contents: any = {}; - if (output.MatchAnyPrefix === "") { + if (String(output.MatchAnyPrefix).trim() === "") { contents[_MAP] = []; } else if (output[_MAP] != null && output[_MAP][_m] != null) { contents[_MAP] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MAP][_m]), context); } - if (output.MatchAnySuffix === "") { + if (String(output.MatchAnySuffix).trim() === "") { contents[_MAS] = []; } else if (output[_MAS] != null && output[_MAS][_m] != null) { contents[_MAS] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MAS][_m]), context); } - if (output.MatchAnySubstring === "") { + if (String(output.MatchAnySubstring).trim() === "") { contents[_MASa] = []; } else if (output[_MASa] != null && output[_MASa][_m] != null) { contents[_MASa] = de_NonEmptyMaxLength1024StringList(__getArrayIfSingleItem(output[_MASa][_m]), context); @@ -7942,7 +7942,7 @@ const de_LambdaInvokeOperation = (output: any, context: __SerdeContext): LambdaI if (output[_ISV] != null) { contents[_ISV] = __expectString(output[_ISV]); } - if (output.UserArguments === "") { + if (String(output.UserArguments).trim() === "") { contents[_UA] = {}; } else if (output[_UA] != null && output[_UA][_e] != null) { contents[_UA] = de_UserArguments(__getArrayIfSingleItem(output[_UA][_e]), context); @@ -7984,12 +7984,12 @@ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule = if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Transitions === "") { + if (String(output.Transitions).trim() === "") { contents[_Tr] = []; } else if (output[_Tr] != null && output[_Tr][_Tra] != null) { contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tr][_Tra]), context); } - if (output.NoncurrentVersionTransitions === "") { + if (String(output.NoncurrentVersionTransitions).trim() === "") { contents[_NVT] = []; } else if (output[_NVT] != null && output[_NVT][_NVTo] != null) { contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVT][_NVTo]), context); @@ -8011,7 +8011,7 @@ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): Life if (output[_Pre] != null) { contents[_Pre] = __expectString(output[_Pre]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_m] != null) { contents[_T] = de_S3TagSet(__getArrayIfSingleItem(output[_T][_m]), context); @@ -8343,7 +8343,7 @@ const de_MultiRegionAccessPointReport = (output: any, context: __SerdeContext): if (output[_St] != null) { contents[_St] = __expectString(output[_St]); } - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Reg] != null) { contents[_Re] = de_RegionReportList(__getArrayIfSingleItem(output[_Re][_Reg]), context); @@ -8387,7 +8387,7 @@ const de_MultiRegionAccessPointsAsyncResponse = ( context: __SerdeContext ): MultiRegionAccessPointsAsyncResponse => { const contents: any = {}; - if (output.Regions === "") { + if (String(output.Regions).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_Reg] != null) { contents[_Re] = de_MultiRegionAccessPointRegionalResponseList(__getArrayIfSingleItem(output[_Re][_Reg]), context); @@ -8560,12 +8560,12 @@ const de_ObjectLambdaConfiguration = (output: any, context: __SerdeContext): Obj if (output[_CWME] != null) { contents[_CWME] = __parseBoolean(output[_CWME]); } - if (output.AllowedFeatures === "") { + if (String(output.AllowedFeatures).trim() === "") { contents[_AFl] = []; } else if (output[_AFl] != null && output[_AFl][_AF] != null) { contents[_AFl] = de_ObjectLambdaAllowedFeaturesList(__getArrayIfSingleItem(output[_AFl][_AF]), context); } - if (output.TransformationConfigurations === "") { + if (String(output.TransformationConfigurations).trim() === "") { contents[_TC] = []; } else if (output[_TC] != null && output[_TC][_TCr] != null) { contents[_TC] = de_ObjectLambdaTransformationConfigurationsList(__getArrayIfSingleItem(output[_TC][_TCr]), context); @@ -8596,7 +8596,7 @@ const de_ObjectLambdaTransformationConfiguration = ( context: __SerdeContext ): ObjectLambdaTransformationConfiguration => { const contents: any = {}; - if (output.Actions === "") { + if (String(output.Actions).trim() === "") { contents[_Act] = []; } else if (output[_Act] != null && output[_Act][_Acti] != null) { contents[_Act] = de_ObjectLambdaTransformationConfigurationActionsList( @@ -8604,7 +8604,7 @@ const de_ObjectLambdaTransformationConfiguration = ( context ); } - if (output.ContentTransformation === "") { + if (String(output.ContentTransformation).trim() === "") { // Pass empty tags. } else if (output[_CTo] != null) { contents[_CTo] = de_ObjectLambdaContentTransformation(__expectUnion(output[_CTo]), context); @@ -8855,7 +8855,7 @@ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): Repl if (output[_Rol] != null) { contents[_Rol] = __expectString(output[_Rol]); } - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Ru] = []; } else if (output[_Ru] != null && output[_Ru][_Rul] != null) { contents[_Ru] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru][_Rul]), context); @@ -8909,7 +8909,7 @@ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): Re if (output[_Pre] != null) { contents[_Pre] = __expectString(output[_Pre]); } - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_T] = []; } else if (output[_T] != null && output[_T][_m] != null) { contents[_T] = de_S3TagSet(__getArrayIfSingleItem(output[_T][_m]), context); @@ -9000,7 +9000,7 @@ const de_S3AccessControlList = (output: any, context: __SerdeContext): S3AccessC if (output[_Ow] != null) { contents[_Ow] = de_S3ObjectOwner(output[_Ow], context); } - if (output.Grants === "") { + if (String(output.Grants).trim() === "") { contents[_Gr] = []; } else if (output[_Gr] != null && output[_Gr][_m] != null) { contents[_Gr] = de_S3GrantList(__getArrayIfSingleItem(output[_Gr][_m]), context); @@ -9076,7 +9076,7 @@ const de_S3CopyObjectOperation = (output: any, context: __SerdeContext): S3CopyO if (output[_CACL] != null) { contents[_CACL] = __expectString(output[_CACL]); } - if (output.AccessControlGrants === "") { + if (String(output.AccessControlGrants).trim() === "") { contents[_ACG] = []; } else if (output[_ACG] != null && output[_ACG][_m] != null) { contents[_ACG] = de_S3GrantList(__getArrayIfSingleItem(output[_ACG][_m]), context); @@ -9090,7 +9090,7 @@ const de_S3CopyObjectOperation = (output: any, context: __SerdeContext): S3CopyO if (output[_NOM] != null) { contents[_NOM] = de_S3ObjectMetadata(output[_NOM], context); } - if (output.NewObjectTagging === "") { + if (String(output.NewObjectTagging).trim() === "") { contents[_NOT] = []; } else if (output[_NOT] != null && output[_NOT][_m] != null) { contents[_NOT] = de_S3TagSet(__getArrayIfSingleItem(output[_NOT][_m]), context); @@ -9286,7 +9286,7 @@ const de_S3ObjectMetadata = (output: any, context: __SerdeContext): S3ObjectMeta if (output[_CL] != null) { contents[_CL] = __expectString(output[_CL]); } - if (output.UserMetadata === "") { + if (String(output.UserMetadata).trim() === "") { contents[_UM] = {}; } else if (output[_UM] != null && output[_UM][_e] != null) { contents[_UM] = de_S3UserMetadata(__getArrayIfSingleItem(output[_UM][_e]), context); @@ -9389,7 +9389,7 @@ const de_S3SetObjectRetentionOperation = (output: any, context: __SerdeContext): */ const de_S3SetObjectTaggingOperation = (output: any, context: __SerdeContext): S3SetObjectTaggingOperation => { const contents: any = {}; - if (output.TagSet === "") { + if (String(output.TagSet).trim() === "") { contents[_TS] = []; } else if (output[_TS] != null && output[_TS][_m] != null) { contents[_TS] = de_S3TagSet(__getArrayIfSingleItem(output[_TS][_m]), context); @@ -9440,12 +9440,12 @@ const de_S3UserMetadata = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output.Prefixes === "") { + if (String(output.Prefixes).trim() === "") { contents[_Pref] = []; } else if (output[_Pref] != null && output[_Pref][_Pre] != null) { contents[_Pref] = de_PrefixesList(__getArrayIfSingleItem(output[_Pref][_Pre]), context); } - if (output.Permissions === "") { + if (String(output.Permissions).trim() === "") { contents[_Pe] = []; } else if (output[_Pe] != null && output[_Pe][_P] != null) { contents[_Pe] = de_ScopePermissionList(__getArrayIfSingleItem(output[_Pe][_P]), context); @@ -9689,17 +9689,17 @@ const de_StorageLensGroup = (output: any, context: __SerdeContext): StorageLensG */ const de_StorageLensGroupAndOperator = (output: any, context: __SerdeContext): StorageLensGroupAndOperator => { const contents: any = {}; - if (output.MatchAnyPrefix === "") { + if (String(output.MatchAnyPrefix).trim() === "") { contents[_MAP] = []; } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } - if (output.MatchAnySuffix === "") { + if (String(output.MatchAnySuffix).trim() === "") { contents[_MAS] = []; } else if (output[_MAS] != null && output[_MAS][_Su] != null) { contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } - if (output.MatchAnyTag === "") { + if (String(output.MatchAnyTag).trim() === "") { contents[_MAT] = []; } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); @@ -9718,17 +9718,17 @@ const de_StorageLensGroupAndOperator = (output: any, context: __SerdeContext): S */ const de_StorageLensGroupFilter = (output: any, context: __SerdeContext): StorageLensGroupFilter => { const contents: any = {}; - if (output.MatchAnyPrefix === "") { + if (String(output.MatchAnyPrefix).trim() === "") { contents[_MAP] = []; } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } - if (output.MatchAnySuffix === "") { + if (String(output.MatchAnySuffix).trim() === "") { contents[_MAS] = []; } else if (output[_MAS] != null && output[_MAS][_Su] != null) { contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } - if (output.MatchAnyTag === "") { + if (String(output.MatchAnyTag).trim() === "") { contents[_MAT] = []; } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); @@ -9789,12 +9789,12 @@ const de_StorageLensGroupLevelSelectionCriteria = ( context: __SerdeContext ): StorageLensGroupLevelSelectionCriteria => { const contents: any = {}; - if (output.Include === "") { + if (String(output.Include).trim() === "") { contents[_I] = []; } else if (output[_I] != null && output[_I][_Ar] != null) { contents[_I] = de_StorageLensGroupLevelInclude(__getArrayIfSingleItem(output[_I][_Ar]), context); } - if (output.Exclude === "") { + if (String(output.Exclude).trim() === "") { contents[_Ex] = []; } else if (output[_Ex] != null && output[_Ex][_Ar] != null) { contents[_Ex] = de_StorageLensGroupLevelExclude(__getArrayIfSingleItem(output[_Ex][_Ar]), context); @@ -9818,17 +9818,17 @@ const de_StorageLensGroupList = (output: any, context: __SerdeContext): ListStor */ const de_StorageLensGroupOrOperator = (output: any, context: __SerdeContext): StorageLensGroupOrOperator => { const contents: any = {}; - if (output.MatchAnyPrefix === "") { + if (String(output.MatchAnyPrefix).trim() === "") { contents[_MAP] = []; } else if (output[_MAP] != null && output[_MAP][_Pre] != null) { contents[_MAP] = de_MatchAnyPrefix(__getArrayIfSingleItem(output[_MAP][_Pre]), context); } - if (output.MatchAnySuffix === "") { + if (String(output.MatchAnySuffix).trim() === "") { contents[_MAS] = []; } else if (output[_MAS] != null && output[_MAS][_Su] != null) { contents[_MAS] = de_MatchAnySuffix(__getArrayIfSingleItem(output[_MAS][_Su]), context); } - if (output.MatchAnyTag === "") { + if (String(output.MatchAnyTag).trim() === "") { contents[_MAT] = []; } else if (output[_MAT] != null && output[_MAT][_Tag] != null) { contents[_MAT] = de_MatchAnyTag(__getArrayIfSingleItem(output[_MAT][_Tag]), context); diff --git a/clients/client-s3/src/protocols/Aws_restXml.ts b/clients/client-s3/src/protocols/Aws_restXml.ts index c947783784e4..94daa02b32b8 100644 --- a/clients/client-s3/src/protocols/Aws_restXml.ts +++ b/clients/client-s3/src/protocols/Aws_restXml.ts @@ -3947,12 +3947,12 @@ export const de_DeleteObjectsCommand = async ( [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Deleted === "") { + if (String(data.Deleted).trim() === "") { contents[_De] = []; } else if (data[_De] != null) { contents[_De] = de_DeletedObjects(__getArrayIfSingleItem(data[_De]), context); } - if (data.Error === "") { + if (String(data.Error).trim() === "") { contents[_Err] = []; } else if (data[_Er] != null) { contents[_Err] = de_Errors(__getArrayIfSingleItem(data[_Er]), context); @@ -4030,7 +4030,7 @@ export const de_GetBucketAclCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessControlList === "") { + if (String(data.AccessControlList).trim() === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); @@ -4073,7 +4073,7 @@ export const de_GetBucketCorsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CORSRule === "") { + if (String(data.CORSRule).trim() === "") { contents[_CORSRu] = []; } else if (data[_CORSR] != null) { contents[_CORSRu] = de_CORSRules(__getArrayIfSingleItem(data[_CORSR]), context); @@ -4150,7 +4150,7 @@ export const de_GetBucketLifecycleConfigurationCommand = async ( [_TDMOS]: [, output.headers[_xatdmos]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Rule === "") { + if (String(data.Rule).trim() === "") { contents[_Rul] = []; } else if (data[_Ru] != null) { contents[_Rul] = de_LifecycleRules(__getArrayIfSingleItem(data[_Ru]), context); @@ -4269,17 +4269,17 @@ export const de_GetBucketNotificationConfigurationCommand = async ( if (data[_EBC] != null) { contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context); } - if (data.CloudFunctionConfiguration === "") { + if (String(data.CloudFunctionConfiguration).trim() === "") { contents[_LFC] = []; } else if (data[_CFC] != null) { contents[_LFC] = de_LambdaFunctionConfigurationList(__getArrayIfSingleItem(data[_CFC]), context); } - if (data.QueueConfiguration === "") { + if (String(data.QueueConfiguration).trim() === "") { contents[_QCu] = []; } else if (data[_QC] != null) { contents[_QCu] = de_QueueConfigurationList(__getArrayIfSingleItem(data[_QC]), context); } - if (data.TopicConfiguration === "") { + if (String(data.TopicConfiguration).trim() === "") { contents[_TCop] = []; } else if (data[_TCo] != null) { contents[_TCop] = de_TopicConfigurationList(__getArrayIfSingleItem(data[_TCo]), context); @@ -4393,7 +4393,7 @@ export const de_GetBucketTaggingCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.TagSet === "") { + if (String(data.TagSet).trim() === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); @@ -4447,7 +4447,7 @@ export const de_GetBucketWebsiteCommand = async ( if (data[_RART] != null) { contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context); } - if (data.RoutingRules === "") { + if (String(data.RoutingRules).trim() === "") { contents[_RRo] = []; } else if (data[_RRo] != null && data[_RRo][_RRou] != null) { contents[_RRo] = de_RoutingRules(__getArrayIfSingleItem(data[_RRo][_RRou]), context); @@ -4538,7 +4538,7 @@ export const de_GetObjectAclCommand = async ( [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AccessControlList === "") { + if (String(data.AccessControlList).trim() === "") { contents[_Gr] = []; } else if (data[_ACLc] != null && data[_ACLc][_G] != null) { contents[_Gr] = de_Grants(__getArrayIfSingleItem(data[_ACLc][_G]), context); @@ -4654,7 +4654,7 @@ export const de_GetObjectTaggingCommand = async ( [_VI]: [, output.headers[_xavi]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.TagSet === "") { + if (String(data.TagSet).trim() === "") { contents[_TS] = []; } else if (data[_TS] != null && data[_TS][_Ta] != null) { contents[_TS] = de_TagSet(__getArrayIfSingleItem(data[_TS][_Ta]), context); @@ -4803,7 +4803,7 @@ export const de_ListBucketAnalyticsConfigurationsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.AnalyticsConfiguration === "") { + if (String(data.AnalyticsConfiguration).trim() === "") { contents[_ACLn] = []; } else if (data[_AC] != null) { contents[_ACLn] = de_AnalyticsConfigurationList(__getArrayIfSingleItem(data[_AC]), context); @@ -4837,7 +4837,7 @@ export const de_ListBucketIntelligentTieringConfigurationsCommand = async ( if (data[_CTon] != null) { contents[_CTon] = __expectString(data[_CTon]); } - if (data.IntelligentTieringConfiguration === "") { + if (String(data.IntelligentTieringConfiguration).trim() === "") { contents[_ITCL] = []; } else if (data[_ITC] != null) { contents[_ITCL] = de_IntelligentTieringConfigurationList(__getArrayIfSingleItem(data[_ITC]), context); @@ -4868,7 +4868,7 @@ export const de_ListBucketInventoryConfigurationsCommand = async ( if (data[_CTon] != null) { contents[_CTon] = __expectString(data[_CTon]); } - if (data.InventoryConfiguration === "") { + if (String(data.InventoryConfiguration).trim() === "") { contents[_ICL] = []; } else if (data[_IC] != null) { contents[_ICL] = de_InventoryConfigurationList(__getArrayIfSingleItem(data[_IC]), context); @@ -4902,7 +4902,7 @@ export const de_ListBucketMetricsConfigurationsCommand = async ( if (data[_IT] != null) { contents[_IT] = __parseBoolean(data[_IT]); } - if (data.MetricsConfiguration === "") { + if (String(data.MetricsConfiguration).trim() === "") { contents[_MCL] = []; } else if (data[_MC] != null) { contents[_MCL] = de_MetricsConfigurationList(__getArrayIfSingleItem(data[_MC]), context); @@ -4927,7 +4927,7 @@ export const de_ListBucketsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Buckets === "") { + if (String(data.Buckets).trim() === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); @@ -4958,7 +4958,7 @@ export const de_ListDirectoryBucketsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.Buckets === "") { + if (String(data.Buckets).trim() === "") { contents[_Bu] = []; } else if (data[_Bu] != null && data[_Bu][_B] != null) { contents[_Bu] = de_Buckets(__getArrayIfSingleItem(data[_Bu][_B]), context); @@ -4987,7 +4987,7 @@ export const de_ListMultipartUploadsCommand = async ( if (data[_B] != null) { contents[_B] = __expectString(data[_B]); } - if (data.CommonPrefixes === "") { + if (String(data.CommonPrefixes).trim() === "") { contents[_CP] = []; } else if (data[_CP] != null) { contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); @@ -5019,7 +5019,7 @@ export const de_ListMultipartUploadsCommand = async ( if (data[_UIM] != null) { contents[_UIM] = __expectString(data[_UIM]); } - if (data.Upload === "") { + if (String(data.Upload).trim() === "") { contents[_Up] = []; } else if (data[_U] != null) { contents[_Up] = de_MultipartUploadList(__getArrayIfSingleItem(data[_U]), context); @@ -5042,12 +5042,12 @@ export const de_ListObjectsCommand = async ( [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { + if (String(data.CommonPrefixes).trim() === "") { contents[_CP] = []; } else if (data[_CP] != null) { contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } - if (data.Contents === "") { + if (String(data.Contents).trim() === "") { contents[_Co] = []; } else if (data[_Co] != null) { contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); @@ -5094,12 +5094,12 @@ export const de_ListObjectsV2Command = async ( [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { + if (String(data.CommonPrefixes).trim() === "") { contents[_CP] = []; } else if (data[_CP] != null) { contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } - if (data.Contents === "") { + if (String(data.Contents).trim() === "") { contents[_Co] = []; } else if (data[_Co] != null) { contents[_Co] = de_ObjectList(__getArrayIfSingleItem(data[_Co]), context); @@ -5152,12 +5152,12 @@ export const de_ListObjectVersionsCommand = async ( [_RC]: [, output.headers[_xarc]], }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.CommonPrefixes === "") { + if (String(data.CommonPrefixes).trim() === "") { contents[_CP] = []; } else if (data[_CP] != null) { contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context); } - if (data.DeleteMarker === "") { + if (String(data.DeleteMarker).trim() === "") { contents[_DMe] = []; } else if (data[_DM] != null) { contents[_DMe] = de_DeleteMarkers(__getArrayIfSingleItem(data[_DM]), context); @@ -5192,7 +5192,7 @@ export const de_ListObjectVersionsCommand = async ( if (data[_VIM] != null) { contents[_VIM] = __expectString(data[_VIM]); } - if (data.Version === "") { + if (String(data.Version).trim() === "") { contents[_Ve] = []; } else if (data[_V] != null) { contents[_Ve] = de_ObjectVersionList(__getArrayIfSingleItem(data[_V]), context); @@ -5250,7 +5250,7 @@ export const de_ListPartsCommand = async ( if (data[_PNM] != null) { contents[_PNM] = __expectString(data[_PNM]); } - if (data.Part === "") { + if (String(data.Part).trim() === "") { contents[_Part] = []; } else if (data[_Par] != null) { contents[_Part] = de_Parts(__getArrayIfSingleItem(data[_Par]), context); @@ -8263,7 +8263,7 @@ const de_AnalyticsAndOperator = (output: any, context: __SerdeContext): Analytic if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); @@ -8279,7 +8279,7 @@ const de_AnalyticsConfiguration = (output: any, context: __SerdeContext): Analyt if (output[_I] != null) { contents[_I] = __expectString(output[_I]); } - if (output.Filter === "") { + if (String(output.Filter).trim() === "") { // Pass empty tags. } else if (output[_F] != null) { contents[_F] = de_AnalyticsFilter(__expectUnion(output[_F]), context); @@ -8535,22 +8535,22 @@ const de_CORSRule = (output: any, context: __SerdeContext): CORSRule => { if (output[_ID_] != null) { contents[_ID_] = __expectString(output[_ID_]); } - if (output.AllowedHeader === "") { + if (String(output.AllowedHeader).trim() === "") { contents[_AHl] = []; } else if (output[_AH] != null) { contents[_AHl] = de_AllowedHeaders(__getArrayIfSingleItem(output[_AH]), context); } - if (output.AllowedMethod === "") { + if (String(output.AllowedMethod).trim() === "") { contents[_AMl] = []; } else if (output[_AM] != null) { contents[_AMl] = de_AllowedMethods(__getArrayIfSingleItem(output[_AM]), context); } - if (output.AllowedOrigin === "") { + if (String(output.AllowedOrigin).trim() === "") { contents[_AOl] = []; } else if (output[_AO] != null) { contents[_AOl] = de_AllowedOrigins(__getArrayIfSingleItem(output[_AO]), context); } - if (output.ExposeHeader === "") { + if (String(output.ExposeHeader).trim() === "") { contents[_EH] = []; } else if (output[_EHx] != null) { contents[_EH] = de_ExposeHeaders(__getArrayIfSingleItem(output[_EHx]), context); @@ -8906,7 +8906,7 @@ const de_GetObjectAttributesParts = (output: any, context: __SerdeContext): GetO if (output[_IT] != null) { contents[_IT] = __parseBoolean(output[_IT]); } - if (output.Part === "") { + if (String(output.Part).trim() === "") { contents[_Part] = []; } else if (output[_Par] != null) { contents[_Part] = de_PartsList(__getArrayIfSingleItem(output[_Par]), context); @@ -8995,7 +8995,7 @@ const de_IntelligentTieringAndOperator = (output: any, context: __SerdeContext): if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); @@ -9017,7 +9017,7 @@ const de_IntelligentTieringConfiguration = (output: any, context: __SerdeContext if (output[_S] != null) { contents[_S] = __expectString(output[_S]); } - if (output.Tiering === "") { + if (String(output.Tiering).trim() === "") { contents[_Tie] = []; } else if (output[_Tier] != null) { contents[_Tie] = de_TieringList(__getArrayIfSingleItem(output[_Tier]), context); @@ -9076,7 +9076,7 @@ const de_InventoryConfiguration = (output: any, context: __SerdeContext): Invent if (output[_IOV] != null) { contents[_IOV] = __expectString(output[_IOV]); } - if (output.OptionalFields === "") { + if (String(output.OptionalFields).trim() === "") { contents[_OF] = []; } else if (output[_OF] != null && output[_OF][_Fi] != null) { contents[_OF] = de_InventoryOptionalFields(__getArrayIfSingleItem(output[_OF][_Fi]), context); @@ -9239,7 +9239,7 @@ const de_LambdaFunctionConfiguration = (output: any, context: __SerdeContext): L if (output[_CF] != null) { contents[_LFA] = __expectString(output[_CF]); } - if (output.Event === "") { + if (String(output.Event).trim() === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); @@ -9298,12 +9298,12 @@ const de_LifecycleRule = (output: any, context: __SerdeContext): LifecycleRule = if (output[_S] != null) { contents[_S] = __expectString(output[_S]); } - if (output.Transition === "") { + if (String(output.Transition).trim() === "") { contents[_Tr] = []; } else if (output[_Tra] != null) { contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tra]), context); } - if (output.NoncurrentVersionTransition === "") { + if (String(output.NoncurrentVersionTransition).trim() === "") { contents[_NVT] = []; } else if (output[_NVTo] != null) { contents[_NVT] = de_NoncurrentVersionTransitionList(__getArrayIfSingleItem(output[_NVTo]), context); @@ -9325,7 +9325,7 @@ const de_LifecycleRuleAndOperator = (output: any, context: __SerdeContext): Life if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); @@ -9381,7 +9381,7 @@ const de_LoggingEnabled = (output: any, context: __SerdeContext): LoggingEnabled if (output[_TB] != null) { contents[_TB] = __expectString(output[_TB]); } - if (output.TargetGrants === "") { + if (String(output.TargetGrants).trim() === "") { contents[_TG] = []; } else if (output[_TG] != null && output[_TG][_G] != null) { contents[_TG] = de_TargetGrants(__getArrayIfSingleItem(output[_TG][_G]), context); @@ -9448,7 +9448,7 @@ const de_MetricsAndOperator = (output: any, context: __SerdeContext): MetricsAnd if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); @@ -9467,7 +9467,7 @@ const de_MetricsConfiguration = (output: any, context: __SerdeContext): MetricsC if (output[_I] != null) { contents[_I] = __expectString(output[_I]); } - if (output.Filter === "") { + if (String(output.Filter).trim() === "") { // Pass empty tags. } else if (output[_F] != null) { contents[_F] = de_MetricsFilter(__expectUnion(output[_F]), context); @@ -9623,7 +9623,7 @@ const de__Object = (output: any, context: __SerdeContext): _Object => { if (output[_ETa] != null) { contents[_ETa] = __expectString(output[_ETa]); } - if (output.ChecksumAlgorithm === "") { + if (String(output.ChecksumAlgorithm).trim() === "") { contents[_CA] = []; } else if (output[_CA] != null) { contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); @@ -9744,7 +9744,7 @@ const de_ObjectVersion = (output: any, context: __SerdeContext): ObjectVersion = if (output[_ETa] != null) { contents[_ETa] = __expectString(output[_ETa]); } - if (output.ChecksumAlgorithm === "") { + if (String(output.ChecksumAlgorithm).trim() === "") { contents[_CA] = []; } else if (output[_CA] != null) { contents[_CA] = de_ChecksumAlgorithmList(__getArrayIfSingleItem(output[_CA]), context); @@ -9809,7 +9809,7 @@ const de_Owner = (output: any, context: __SerdeContext): Owner => { */ const de_OwnershipControls = (output: any, context: __SerdeContext): OwnershipControls => { const contents: any = {}; - if (output.Rule === "") { + if (String(output.Rule).trim() === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { contents[_Rul] = de_OwnershipControlsRules(__getArrayIfSingleItem(output[_Ru]), context); @@ -9966,7 +9966,7 @@ const de_QueueConfiguration = (output: any, context: __SerdeContext): QueueConfi if (output[_Qu] != null) { contents[_QA] = __expectString(output[_Qu]); } - if (output.Event === "") { + if (String(output.Event).trim() === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); @@ -10058,7 +10058,7 @@ const de_ReplicationConfiguration = (output: any, context: __SerdeContext): Repl if (output[_Ro] != null) { contents[_Ro] = __expectString(output[_Ro]); } - if (output.Rule === "") { + if (String(output.Rule).trim() === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { contents[_Rul] = de_ReplicationRules(__getArrayIfSingleItem(output[_Ru]), context); @@ -10109,7 +10109,7 @@ const de_ReplicationRuleAndOperator = (output: any, context: __SerdeContext): Re if (output[_P] != null) { contents[_P] = __expectString(output[_P]); } - if (output.Tag === "") { + if (String(output.Tag).trim() === "") { contents[_Tag] = []; } else if (output[_Ta] != null) { contents[_Tag] = de_TagSet(__getArrayIfSingleItem(output[_Ta]), context); @@ -10214,7 +10214,7 @@ const de_RoutingRules = (output: any, context: __SerdeContext): RoutingRule[] => */ const de_S3KeyFilter = (output: any, context: __SerdeContext): S3KeyFilter => { const contents: any = {}; - if (output.FilterRule === "") { + if (String(output.FilterRule).trim() === "") { contents[_FRi] = []; } else if (output[_FR] != null) { contents[_FRi] = de_FilterRuleList(__getArrayIfSingleItem(output[_FR]), context); @@ -10264,7 +10264,7 @@ const de_ServerSideEncryptionConfiguration = ( context: __SerdeContext ): ServerSideEncryptionConfiguration => { const contents: any = {}; - if (output.Rule === "") { + if (String(output.Rule).trim() === "") { contents[_Rul] = []; } else if (output[_Ru] != null) { contents[_Rul] = de_ServerSideEncryptionRules(__getArrayIfSingleItem(output[_Ru]), context); @@ -10511,7 +10511,7 @@ const de_TopicConfiguration = (output: any, context: __SerdeContext): TopicConfi if (output[_Top] != null) { contents[_TA] = __expectString(output[_Top]); } - if (output.Event === "") { + if (String(output.Event).trim() === "") { contents[_Eve] = []; } else if (output[_Ev] != null) { contents[_Eve] = de_EventList(__getArrayIfSingleItem(output[_Ev]), context); diff --git a/clients/client-ses/src/protocols/Aws_query.ts b/clients/client-ses/src/protocols/Aws_query.ts index 94608cd05d0c..fe5be2570dfa 100644 --- a/clients/client-ses/src/protocols/Aws_query.ts +++ b/clients/client-ses/src/protocols/Aws_query.ts @@ -6015,7 +6015,7 @@ const de_CloneReceiptRuleSetResponse = (output: any, context: __SerdeContext): C */ const de_CloudWatchDestination = (output: any, context: __SerdeContext): CloudWatchDestination => { const contents: any = {}; - if (output.DimensionConfigurations === "") { + if (String(output.DimensionConfigurations).trim() === "") { contents[_DC] = []; } else if (output[_DC] != null && output[_DC][_me] != null) { contents[_DC] = de_CloudWatchDimensionConfigurations(__getArrayIfSingleItem(output[_DC][_me]), context); @@ -6391,7 +6391,7 @@ const de_DescribeActiveReceiptRuleSetResponse = ( if (output[_Me] != null) { contents[_Me] = de_ReceiptRuleSetMetadata(output[_Me], context); } - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Rul] = []; } else if (output[_Rul] != null && output[_Rul][_me] != null) { contents[_Rul] = de_ReceiptRulesList(__getArrayIfSingleItem(output[_Rul][_me]), context); @@ -6410,7 +6410,7 @@ const de_DescribeConfigurationSetResponse = ( if (output[_CS] != null) { contents[_CS] = de_ConfigurationSet(output[_CS], context); } - if (output.EventDestinations === "") { + if (String(output.EventDestinations).trim() === "") { contents[_EDv] = []; } else if (output[_EDv] != null && output[_EDv][_me] != null) { contents[_EDv] = de_EventDestinations(__getArrayIfSingleItem(output[_EDv][_me]), context); @@ -6446,7 +6446,7 @@ const de_DescribeReceiptRuleSetResponse = (output: any, context: __SerdeContext) if (output[_Me] != null) { contents[_Me] = de_ReceiptRuleSetMetadata(output[_Me], context); } - if (output.Rules === "") { + if (String(output.Rules).trim() === "") { contents[_Rul] = []; } else if (output[_Rul] != null && output[_Rul][_me] != null) { contents[_Rul] = de_ReceiptRulesList(__getArrayIfSingleItem(output[_Rul][_me]), context); @@ -6478,7 +6478,7 @@ const de_EventDestination = (output: any, context: __SerdeContext): EventDestina if (output[_E] != null) { contents[_E] = __parseBoolean(output[_E]); } - if (output.MatchingEventTypes === "") { + if (String(output.MatchingEventTypes).trim() === "") { contents[_MET] = []; } else if (output[_MET] != null && output[_MET][_me] != null) { contents[_MET] = de_EventTypes(__getArrayIfSingleItem(output[_MET][_me]), context); @@ -6625,7 +6625,7 @@ const de_GetIdentityDkimAttributesResponse = ( context: __SerdeContext ): GetIdentityDkimAttributesResponse => { const contents: any = {}; - if (output.DkimAttributes === "") { + if (String(output.DkimAttributes).trim() === "") { contents[_DA] = {}; } else if (output[_DA] != null && output[_DA][_e] != null) { contents[_DA] = de_DkimAttributes(__getArrayIfSingleItem(output[_DA][_e]), context); @@ -6641,7 +6641,7 @@ const de_GetIdentityMailFromDomainAttributesResponse = ( context: __SerdeContext ): GetIdentityMailFromDomainAttributesResponse => { const contents: any = {}; - if (output.MailFromDomainAttributes === "") { + if (String(output.MailFromDomainAttributes).trim() === "") { contents[_MFDA] = {}; } else if (output[_MFDA] != null && output[_MFDA][_e] != null) { contents[_MFDA] = de_MailFromDomainAttributes(__getArrayIfSingleItem(output[_MFDA][_e]), context); @@ -6657,7 +6657,7 @@ const de_GetIdentityNotificationAttributesResponse = ( context: __SerdeContext ): GetIdentityNotificationAttributesResponse => { const contents: any = {}; - if (output.NotificationAttributes === "") { + if (String(output.NotificationAttributes).trim() === "") { contents[_NA] = {}; } else if (output[_NA] != null && output[_NA][_e] != null) { contents[_NA] = de_NotificationAttributes(__getArrayIfSingleItem(output[_NA][_e]), context); @@ -6670,7 +6670,7 @@ const de_GetIdentityNotificationAttributesResponse = ( */ const de_GetIdentityPoliciesResponse = (output: any, context: __SerdeContext): GetIdentityPoliciesResponse => { const contents: any = {}; - if (output.Policies === "") { + if (String(output.Policies).trim() === "") { contents[_Po] = {}; } else if (output[_Po] != null && output[_Po][_e] != null) { contents[_Po] = de_PolicyMap(__getArrayIfSingleItem(output[_Po][_e]), context); @@ -6686,7 +6686,7 @@ const de_GetIdentityVerificationAttributesResponse = ( context: __SerdeContext ): GetIdentityVerificationAttributesResponse => { const contents: any = {}; - if (output.VerificationAttributes === "") { + if (String(output.VerificationAttributes).trim() === "") { contents[_VA] = {}; } else if (output[_VA] != null && output[_VA][_e] != null) { contents[_VA] = de_VerificationAttributes(__getArrayIfSingleItem(output[_VA][_e]), context); @@ -6716,7 +6716,7 @@ const de_GetSendQuotaResponse = (output: any, context: __SerdeContext): GetSendQ */ const de_GetSendStatisticsResponse = (output: any, context: __SerdeContext): GetSendStatisticsResponse => { const contents: any = {}; - if (output.SendDataPoints === "") { + if (String(output.SendDataPoints).trim() === "") { contents[_SDP] = []; } else if (output[_SDP] != null && output[_SDP][_me] != null) { contents[_SDP] = de_SendDataPointList(__getArrayIfSingleItem(output[_SDP][_me]), context); @@ -6746,7 +6746,7 @@ const de_IdentityDkimAttributes = (output: any, context: __SerdeContext): Identi if (output[_DVSk] != null) { contents[_DVSk] = __expectString(output[_DVSk]); } - if (output.DkimTokens === "") { + if (String(output.DkimTokens).trim() === "") { contents[_DTk] = []; } else if (output[_DTk] != null && output[_DTk][_me] != null) { contents[_DTk] = de_VerificationTokenList(__getArrayIfSingleItem(output[_DTk][_me]), context); @@ -7052,7 +7052,7 @@ const de_LimitExceededException = (output: any, context: __SerdeContext): LimitE */ const de_ListConfigurationSetsResponse = (output: any, context: __SerdeContext): ListConfigurationSetsResponse => { const contents: any = {}; - if (output.ConfigurationSets === "") { + if (String(output.ConfigurationSets).trim() === "") { contents[_CSo] = []; } else if (output[_CSo] != null && output[_CSo][_me] != null) { contents[_CSo] = de_ConfigurationSets(__getArrayIfSingleItem(output[_CSo][_me]), context); @@ -7071,7 +7071,7 @@ const de_ListCustomVerificationEmailTemplatesResponse = ( context: __SerdeContext ): ListCustomVerificationEmailTemplatesResponse => { const contents: any = {}; - if (output.CustomVerificationEmailTemplates === "") { + if (String(output.CustomVerificationEmailTemplates).trim() === "") { contents[_CVET] = []; } else if (output[_CVET] != null && output[_CVET][_me] != null) { contents[_CVET] = de_CustomVerificationEmailTemplates(__getArrayIfSingleItem(output[_CVET][_me]), context); @@ -7087,7 +7087,7 @@ const de_ListCustomVerificationEmailTemplatesResponse = ( */ const de_ListIdentitiesResponse = (output: any, context: __SerdeContext): ListIdentitiesResponse => { const contents: any = {}; - if (output.Identities === "") { + if (String(output.Identities).trim() === "") { contents[_Id] = []; } else if (output[_Id] != null && output[_Id][_me] != null) { contents[_Id] = de_IdentityList(__getArrayIfSingleItem(output[_Id][_me]), context); @@ -7103,7 +7103,7 @@ const de_ListIdentitiesResponse = (output: any, context: __SerdeContext): ListId */ const de_ListIdentityPoliciesResponse = (output: any, context: __SerdeContext): ListIdentityPoliciesResponse => { const contents: any = {}; - if (output.PolicyNames === "") { + if (String(output.PolicyNames).trim() === "") { contents[_PNo] = []; } else if (output[_PNo] != null && output[_PNo][_me] != null) { contents[_PNo] = de_PolicyNameList(__getArrayIfSingleItem(output[_PNo][_me]), context); @@ -7116,7 +7116,7 @@ const de_ListIdentityPoliciesResponse = (output: any, context: __SerdeContext): */ const de_ListReceiptFiltersResponse = (output: any, context: __SerdeContext): ListReceiptFiltersResponse => { const contents: any = {}; - if (output.Filters === "") { + if (String(output.Filters).trim() === "") { contents[_Fi] = []; } else if (output[_Fi] != null && output[_Fi][_me] != null) { contents[_Fi] = de_ReceiptFilterList(__getArrayIfSingleItem(output[_Fi][_me]), context); @@ -7129,7 +7129,7 @@ const de_ListReceiptFiltersResponse = (output: any, context: __SerdeContext): Li */ const de_ListReceiptRuleSetsResponse = (output: any, context: __SerdeContext): ListReceiptRuleSetsResponse => { const contents: any = {}; - if (output.RuleSets === "") { + if (String(output.RuleSets).trim() === "") { contents[_RS] = []; } else if (output[_RS] != null && output[_RS][_me] != null) { contents[_RS] = de_ReceiptRuleSetsLists(__getArrayIfSingleItem(output[_RS][_me]), context); @@ -7145,7 +7145,7 @@ const de_ListReceiptRuleSetsResponse = (output: any, context: __SerdeContext): L */ const de_ListTemplatesResponse = (output: any, context: __SerdeContext): ListTemplatesResponse => { const contents: any = {}; - if (output.TemplatesMetadata === "") { + if (String(output.TemplatesMetadata).trim() === "") { contents[_TM] = []; } else if (output[_TM] != null && output[_TM][_me] != null) { contents[_TM] = de_TemplateMetadataList(__getArrayIfSingleItem(output[_TM][_me]), context); @@ -7164,7 +7164,7 @@ const de_ListVerifiedEmailAddressesResponse = ( context: __SerdeContext ): ListVerifiedEmailAddressesResponse => { const contents: any = {}; - if (output.VerifiedEmailAddresses === "") { + if (String(output.VerifiedEmailAddresses).trim() === "") { contents[_VEAe] = []; } else if (output[_VEAe] != null && output[_VEAe][_me] != null) { contents[_VEAe] = de_AddressList(__getArrayIfSingleItem(output[_VEAe][_me]), context); @@ -7399,12 +7399,12 @@ const de_ReceiptRule = (output: any, context: __SerdeContext): ReceiptRule => { if (output[_TP] != null) { contents[_TP] = __expectString(output[_TP]); } - if (output.Recipients === "") { + if (String(output.Recipients).trim() === "") { contents[_Re] = []; } else if (output[_Re] != null && output[_Re][_me] != null) { contents[_Re] = de_RecipientsList(__getArrayIfSingleItem(output[_Re][_me]), context); } - if (output.Actions === "") { + if (String(output.Actions).trim() === "") { contents[_Ac] = []; } else if (output[_Ac] != null && output[_Ac][_me] != null) { contents[_Ac] = de_ReceiptActionsList(__getArrayIfSingleItem(output[_Ac][_me]), context); @@ -7554,7 +7554,7 @@ const de_SendBounceResponse = (output: any, context: __SerdeContext): SendBounce */ const de_SendBulkTemplatedEmailResponse = (output: any, context: __SerdeContext): SendBulkTemplatedEmailResponse => { const contents: any = {}; - if (output.Status === "") { + if (String(output.Status).trim() === "") { contents[_St] = []; } else if (output[_St] != null && output[_St][_me] != null) { contents[_St] = de_BulkEmailDestinationStatusList(__getArrayIfSingleItem(output[_St][_me]), context); @@ -7935,7 +7935,7 @@ const de_VerificationTokenList = (output: any, context: __SerdeContext): string[ */ const de_VerifyDomainDkimResponse = (output: any, context: __SerdeContext): VerifyDomainDkimResponse => { const contents: any = {}; - if (output.DkimTokens === "") { + if (String(output.DkimTokens).trim() === "") { contents[_DTk] = []; } else if (output[_DTk] != null && output[_DTk][_me] != null) { contents[_DTk] = de_VerificationTokenList(__getArrayIfSingleItem(output[_DTk][_me]), context); diff --git a/clients/client-sns/src/protocols/Aws_query.ts b/clients/client-sns/src/protocols/Aws_query.ts index 3413d9011027..fba946b904f8 100644 --- a/clients/client-sns/src/protocols/Aws_query.ts +++ b/clients/client-sns/src/protocols/Aws_query.ts @@ -3510,7 +3510,7 @@ const de_Endpoint = (output: any, context: __SerdeContext): Endpoint => { if (output[_EA] != null) { contents[_EA] = __expectString(output[_EA]); } - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); @@ -3559,7 +3559,7 @@ const de_GetDataProtectionPolicyResponse = (output: any, context: __SerdeContext */ const de_GetEndpointAttributesResponse = (output: any, context: __SerdeContext): GetEndpointAttributesResponse => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); @@ -3575,7 +3575,7 @@ const de_GetPlatformApplicationAttributesResponse = ( context: __SerdeContext ): GetPlatformApplicationAttributesResponse => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); @@ -3588,7 +3588,7 @@ const de_GetPlatformApplicationAttributesResponse = ( */ const de_GetSMSAttributesResponse = (output: any, context: __SerdeContext): GetSMSAttributesResponse => { const contents: any = {}; - if (output.attributes === "") { + if (String(output.attributes).trim() === "") { contents[_a] = {}; } else if (output[_a] != null && output[_a][_e] != null) { contents[_a] = de_MapStringToString(__getArrayIfSingleItem(output[_a][_e]), context); @@ -3618,7 +3618,7 @@ const de_GetSubscriptionAttributesResponse = ( context: __SerdeContext ): GetSubscriptionAttributesResponse => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_SubscriptionAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context); @@ -3631,7 +3631,7 @@ const de_GetSubscriptionAttributesResponse = ( */ const de_GetTopicAttributesResponse = (output: any, context: __SerdeContext): GetTopicAttributesResponse => { const contents: any = {}; - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_TopicAttributesMap(__getArrayIfSingleItem(output[_At][_e]), context); @@ -3779,7 +3779,7 @@ const de_ListEndpointsByPlatformApplicationResponse = ( context: __SerdeContext ): ListEndpointsByPlatformApplicationResponse => { const contents: any = {}; - if (output.Endpoints === "") { + if (String(output.Endpoints).trim() === "") { contents[_En] = []; } else if (output[_En] != null && output[_En][_me] != null) { contents[_En] = de_ListOfEndpoints(__getArrayIfSingleItem(output[_En][_me]), context); @@ -3820,7 +3820,7 @@ const de_ListOriginationNumbersResult = (output: any, context: __SerdeContext): if (output[_NT] != null) { contents[_NT] = __expectString(output[_NT]); } - if (output.PhoneNumbers === "") { + if (String(output.PhoneNumbers).trim() === "") { contents[_PNh] = []; } else if (output[_PNh] != null && output[_PNh][_me] != null) { contents[_PNh] = de_PhoneNumberInformationList(__getArrayIfSingleItem(output[_PNh][_me]), context); @@ -3836,7 +3836,7 @@ const de_ListPhoneNumbersOptedOutResponse = ( context: __SerdeContext ): ListPhoneNumbersOptedOutResponse => { const contents: any = {}; - if (output.phoneNumbers === "") { + if (String(output.phoneNumbers).trim() === "") { contents[_pNh] = []; } else if (output[_pNh] != null && output[_pNh][_me] != null) { contents[_pNh] = de_PhoneNumberList(__getArrayIfSingleItem(output[_pNh][_me]), context); @@ -3855,7 +3855,7 @@ const de_ListPlatformApplicationsResponse = ( context: __SerdeContext ): ListPlatformApplicationsResponse => { const contents: any = {}; - if (output.PlatformApplications === "") { + if (String(output.PlatformApplications).trim() === "") { contents[_PA] = []; } else if (output[_PA] != null && output[_PA][_me] != null) { contents[_PA] = de_ListOfPlatformApplications(__getArrayIfSingleItem(output[_PA][_me]), context); @@ -3874,7 +3874,7 @@ const de_ListSMSSandboxPhoneNumbersResult = ( context: __SerdeContext ): ListSMSSandboxPhoneNumbersResult => { const contents: any = {}; - if (output.PhoneNumbers === "") { + if (String(output.PhoneNumbers).trim() === "") { contents[_PNh] = []; } else if (output[_PNh] != null && output[_PNh][_me] != null) { contents[_PNh] = de_SMSSandboxPhoneNumberList(__getArrayIfSingleItem(output[_PNh][_me]), context); @@ -3893,7 +3893,7 @@ const de_ListSubscriptionsByTopicResponse = ( context: __SerdeContext ): ListSubscriptionsByTopicResponse => { const contents: any = {}; - if (output.Subscriptions === "") { + if (String(output.Subscriptions).trim() === "") { contents[_Sub] = []; } else if (output[_Sub] != null && output[_Sub][_me] != null) { contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context); @@ -3909,7 +3909,7 @@ const de_ListSubscriptionsByTopicResponse = ( */ const de_ListSubscriptionsResponse = (output: any, context: __SerdeContext): ListSubscriptionsResponse => { const contents: any = {}; - if (output.Subscriptions === "") { + if (String(output.Subscriptions).trim() === "") { contents[_Sub] = []; } else if (output[_Sub] != null && output[_Sub][_me] != null) { contents[_Sub] = de_SubscriptionsList(__getArrayIfSingleItem(output[_Sub][_me]), context); @@ -3925,7 +3925,7 @@ const de_ListSubscriptionsResponse = (output: any, context: __SerdeContext): Lis */ const de_ListTagsForResourceResponse = (output: any, context: __SerdeContext): ListTagsForResourceResponse => { const contents: any = {}; - if (output.Tags === "") { + if (String(output.Tags).trim() === "") { contents[_Ta] = []; } else if (output[_Ta] != null && output[_Ta][_me] != null) { contents[_Ta] = de_TagList(__getArrayIfSingleItem(output[_Ta][_me]), context); @@ -3938,7 +3938,7 @@ const de_ListTagsForResourceResponse = (output: any, context: __SerdeContext): L */ const de_ListTopicsResponse = (output: any, context: __SerdeContext): ListTopicsResponse => { const contents: any = {}; - if (output.Topics === "") { + if (String(output.Topics).trim() === "") { contents[_To] = []; } else if (output[_To] != null && output[_To][_me] != null) { contents[_To] = de_TopicsList(__getArrayIfSingleItem(output[_To][_me]), context); @@ -4023,7 +4023,7 @@ const de_PhoneNumberInformation = (output: any, context: __SerdeContext): PhoneN if (output[_RT] != null) { contents[_RT] = __expectString(output[_RT]); } - if (output.NumberCapabilities === "") { + if (String(output.NumberCapabilities).trim() === "") { contents[_NC] = []; } else if (output[_NC] != null && output[_NC][_me] != null) { contents[_NC] = de_NumberCapabilityList(__getArrayIfSingleItem(output[_NC][_me]), context); @@ -4061,7 +4061,7 @@ const de_PlatformApplication = (output: any, context: __SerdeContext): PlatformA if (output[_PAA] != null) { contents[_PAA] = __expectString(output[_PAA]); } - if (output.Attributes === "") { + if (String(output.Attributes).trim() === "") { contents[_At] = {}; } else if (output[_At] != null && output[_At][_e] != null) { contents[_At] = de_MapStringToString(__getArrayIfSingleItem(output[_At][_e]), context); @@ -4088,12 +4088,12 @@ const de_PlatformApplicationDisabledException = ( */ const de_PublishBatchResponse = (output: any, context: __SerdeContext): PublishBatchResponse => { const contents: any = {}; - if (output.Successful === "") { + if (String(output.Successful).trim() === "") { contents[_Suc] = []; } else if (output[_Suc] != null && output[_Suc][_me] != null) { contents[_Suc] = de_PublishBatchResultEntryList(__getArrayIfSingleItem(output[_Suc][_me]), context); } - if (output.Failed === "") { + if (String(output.Failed).trim() === "") { contents[_F] = []; } else if (output[_F] != null && output[_F][_me] != null) { contents[_F] = de_BatchResultErrorEntryList(__getArrayIfSingleItem(output[_F][_me]), context); diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java index fdc1d5893eeb..488eb48be2bf 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/XmlShapeDeserVisitor.java @@ -287,7 +287,7 @@ private boolean handleEmptyTags( String memberName, boolean isWithinUnion) { if (target instanceof MapShape || target instanceof CollectionShape || target instanceof UnionShape) { - writer.openBlock("if ($L.$L === \"\") {", "}", inputLocation, locationName, () -> { + writer.openBlock("if (String($L.$L).trim() === \"\") {", "}", inputLocation, locationName, () -> { if (target instanceof MapShape) { writer.write("contents[$L] = {};", stringStore.var(memberName)); } else if (target instanceof CollectionShape) { diff --git a/packages/core/src/submodules/protocols/xml/parseXmlBody.spec.ts b/packages/core/src/submodules/protocols/xml/parseXmlBody.spec.ts index 1a2c7d27461a..d5e1c0f96146 100644 --- a/packages/core/src/submodules/protocols/xml/parseXmlBody.spec.ts +++ b/packages/core/src/submodules/protocols/xml/parseXmlBody.spec.ts @@ -45,7 +45,8 @@ describe(parseXmlBody.name, () => { `); const parsed = await parseXmlBody(xml, context as any as SerdeContext).catch((_: any) => _); - expect(parsed.toString()).toEqual(`Error: Unclosed tag 'ListAllMyBucketsResult'.:2:1`); + expect(parsed).toBeInstanceOf(Error); + // expect(parsed.toString()).toEqual(`Error: Unclosed tag 'ListAllMyBucketsResult'.:2:1`); }); it("should throw on incomplete xml", async () => { @@ -56,6 +57,7 @@ describe(parseXmlBody.name, () => { timestamp _); - expect(parsed.toString()).toEqual(`Error: Closing tag 'Creatio' doesn't have proper closing.:6:1`); + expect(parsed).toBeInstanceOf(Error); + // expect(parsed.toString()).toEqual(`Error: Closing tag 'Creatio' doesn't have proper closing.:6:1`); }); }); diff --git a/packages/middleware-sdk-route53/src/middleware-sdk-route53.integ.spec.ts b/packages/middleware-sdk-route53/src/middleware-sdk-route53.integ.spec.ts index a6643d08456d..143e42412365 100644 --- a/packages/middleware-sdk-route53/src/middleware-sdk-route53.integ.spec.ts +++ b/packages/middleware-sdk-route53/src/middleware-sdk-route53.integ.spec.ts @@ -1,6 +1,6 @@ import { requireRequestsFrom } from "@aws-sdk/aws-util-test/src"; import { Route53 } from "@aws-sdk/client-route-53"; -import { XMLParser } from "fast-xml-parser"; +import { parseXML } from "@aws-sdk/xml-builder"; import { describe, expect, test as it } from "vitest"; describe("middleware-sdk-route53", () => { @@ -66,7 +66,7 @@ describe("middleware-sdk-route53", () => { requireRequestsFrom(client).toMatch({ body(raw) { - const parsed = new XMLParser().parse(raw); + const parsed = parseXML(raw); expect( parsed.ChangeResourceRecordSetsRequest.ChangeBatch.Changes.Change.ResourceRecordSet.AliasTarget.HostedZoneId ).toMatch(/^my-zone$/); diff --git a/packages/xml-builder/src/xml-parser.browser.ts b/packages/xml-builder/src/xml-parser.browser.ts index 5a09d98663b7..068e54e41ea5 100644 --- a/packages/xml-builder/src/xml-parser.browser.ts +++ b/packages/xml-builder/src/xml-parser.browser.ts @@ -11,6 +11,10 @@ const parser = new DOMParser(); export function parseXML(xmlString: string): any { const xmlDocument = parser.parseFromString(xmlString, "application/xml"); + if (xmlDocument.getElementsByTagName("parsererror").length > 0) { + throw new Error("DOMParser XML parsing error."); + } + // Recursive function to convert XML nodes to JS object const xmlToObj = (node: Node): any => { if (node.nodeType === Node.TEXT_NODE) { diff --git a/packages/xml-builder/src/xml-parser.spec.ts b/packages/xml-builder/src/xml-parser.spec.ts index 11ba9de7dbdd..3c841c5d2fa5 100644 --- a/packages/xml-builder/src/xml-parser.spec.ts +++ b/packages/xml-builder/src/xml-parser.spec.ts @@ -81,6 +81,24 @@ describe("xml parsing", () => { }); }); + it("should create empty objects", () => { + const xml = ` + + + + + `; + const object = parse(xml); + expect(object).toEqual({ + XmlEmptyMapsResponse: { + xmlns: "https://example.com/", + XmlEmptyMapsResult: { + myMap: "\n ", + }, + }, + }); + }); + it("should parse xml (custom)", () => { const xml = ` @@ -89,14 +107,14 @@ describe("xml parsing", () => { dup1 dup2 dup3 - s p a c e d + \u0020s p a c e d\u0020 abcdefg dup1 dup2 dup3 - s p a c e d + \u0020s p a c e d\u0020 `; const object = parse(xml); @@ -124,7 +142,7 @@ describe("xml parsing", () => { dup1 dup2 - s p a c e d + \u0020s p a c e d\u0020 !@#$%^*() 1000000000000000000000000000000000000000000000000 @@ -138,7 +156,7 @@ describe("xml parsing", () => { ` `, ` `, - `dup1dup2 s p a c e d !@#$%^*()1000000000000000000000000000000000000000000000000dup1dup2`, + `dup1dup2\u0020s p a c e d\u0020!@#$%^*()1000000000000000000000000000000000000000000000000dup1dup2`, `z`, ` `, ` `, @@ -150,4 +168,13 @@ describe("xml parsing", () => { expect(parseXMLBrowser(xml)).toEqual(parseXML(xml)); }); } + + it("throws on parsing error", () => { + const xmlSamples = [``]; + + for (const xml of xmlSamples) { + expect(() => parseXMLBrowser(xml)).toThrowError(); + expect(() => parseXML(xml)).toThrowError(); + } + }); }); diff --git a/packages/xml-builder/src/xml-parser.ts b/packages/xml-builder/src/xml-parser.ts index 6e5c7a62c7a1..4f4e5cdd7b99 100644 --- a/packages/xml-builder/src/xml-parser.ts +++ b/packages/xml-builder/src/xml-parser.ts @@ -18,7 +18,12 @@ // temporary replacement for compatibility testing. import { DOMParser } from "@xmldom/xmldom"; -const parser = new DOMParser(); +const parser = new DOMParser({ + locator: {}, + errorHandler: (err) => { + throw new Error(err); + }, +}); /** * Cases where this differs from fast-xml-parser: @@ -31,6 +36,10 @@ const parser = new DOMParser(); export function parseXML(xmlString: string): any { const xmlDocument = parser.parseFromString(xmlString, "application/xml"); + if (xmlDocument.getElementsByTagName("parsererror").length > 0) { + throw new Error("DOMParser XML parsing error."); + } + // Recursive function to convert XML nodes to JS object const xmlToObj = (node: Node): any => { if (node.nodeType === 3) { diff --git a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts index 52b684eedee7..be109a9e49cb 100644 --- a/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts +++ b/private/aws-protocoltests-ec2/src/protocols/Aws_ec2.ts @@ -1571,17 +1571,17 @@ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput if (output[_fEoo] != null) { contents[_fEoo] = __expectString(output[_fEoo]); } - if (output.fooEnumList === "") { + if (String(output.fooEnumList).trim() === "") { contents[_fEL] = []; } else if (output[_fEL] != null && output[_fEL][_m] != null) { contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(output[_fEL][_m]), context); } - if (output.fooEnumSet === "") { + if (String(output.fooEnumSet).trim() === "") { contents[_fES] = []; } else if (output[_fES] != null && output[_fES][_m] != null) { contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(output[_fES][_m]), context); } - if (output.fooEnumMap === "") { + if (String(output.fooEnumMap).trim() === "") { contents[_fEM] = {}; } else if (output[_fEM] != null && output[_fEM][_en] != null) { contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(output[_fEM][_en]), context); @@ -1603,17 +1603,17 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums if (output[_iEnt] != null) { contents[_iEnt] = __strictParseInt32(output[_iEnt]) as number; } - if (output.intEnumList === "") { + if (String(output.intEnumList).trim() === "") { contents[_iEL] = []; } else if (output[_iEL] != null && output[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } - if (output.intEnumSet === "") { + if (String(output.intEnumSet).trim() === "") { contents[_iES] = []; } else if (output[_iES] != null && output[_iES][_m] != null) { contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(output[_iES][_m]), context); } - if (output.intEnumMap === "") { + if (String(output.intEnumMap).trim() === "") { contents[_iEM] = {}; } else if (output[_iEM] != null && output[_iEM][_en] != null) { contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(output[_iEM][_en]), context); @@ -1626,72 +1626,72 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums */ const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput => { const contents: any = {}; - if (output.stringList === "") { + if (String(output.stringList).trim() === "") { contents[_sL] = []; } else if (output[_sL] != null && output[_sL][_m] != null) { contents[_sL] = de_StringList(__getArrayIfSingleItem(output[_sL][_m]), context); } - if (output.stringSet === "") { + if (String(output.stringSet).trim() === "") { contents[_sS] = []; } else if (output[_sS] != null && output[_sS][_m] != null) { contents[_sS] = de_StringSet(__getArrayIfSingleItem(output[_sS][_m]), context); } - if (output.integerList === "") { + if (String(output.integerList).trim() === "") { contents[_iL] = []; } else if (output[_iL] != null && output[_iL][_m] != null) { contents[_iL] = de_IntegerList(__getArrayIfSingleItem(output[_iL][_m]), context); } - if (output.booleanList === "") { + if (String(output.booleanList).trim() === "") { contents[_bL] = []; } else if (output[_bL] != null && output[_bL][_m] != null) { contents[_bL] = de_BooleanList(__getArrayIfSingleItem(output[_bL][_m]), context); } - if (output.timestampList === "") { + if (String(output.timestampList).trim() === "") { contents[_tL] = []; } else if (output[_tL] != null && output[_tL][_m] != null) { contents[_tL] = de_TimestampList(__getArrayIfSingleItem(output[_tL][_m]), context); } - if (output.enumList === "") { + if (String(output.enumList).trim() === "") { contents[_eL] = []; } else if (output[_eL] != null && output[_eL][_m] != null) { contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(output[_eL][_m]), context); } - if (output.intEnumList === "") { + if (String(output.intEnumList).trim() === "") { contents[_iEL] = []; } else if (output[_iEL] != null && output[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } - if (output.nestedStringList === "") { + if (String(output.nestedStringList).trim() === "") { contents[_nSL] = []; } else if (output[_nSL] != null && output[_nSL][_m] != null) { contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(output[_nSL][_m]), context); } - if (output.renamed === "") { + if (String(output.renamed).trim() === "") { contents[_rLM] = []; } else if (output[_r] != null && output[_r][_i] != null) { contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(output[_r][_i]), context); } - if (output.flattenedList === "") { + if (String(output.flattenedList).trim() === "") { contents[_fL] = []; } else if (output[_fL] != null) { contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(output[_fL]), context); } - if (output.customName === "") { + if (String(output.customName).trim() === "") { contents[_fLl] = []; } else if (output[_cN] != null) { contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(output[_cN]), context); } - if (output.flattenedListWithMemberNamespace === "") { + if (String(output.flattenedListWithMemberNamespace).trim() === "") { contents[_fLWMN] = []; } else if (output[_fLWMN] != null) { contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(output[_fLWMN]), context); } - if (output.flattenedListWithNamespace === "") { + if (String(output.flattenedListWithNamespace).trim() === "") { contents[_fLWN] = []; } else if (output[_fLWN] != null) { contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(output[_fLWN]), context); } - if (output.myStructureList === "") { + if (String(output.myStructureList).trim() === "") { contents[_sLt] = []; } else if (output[_mSL] != null && output[_mSL][_i] != null) { contents[_sLt] = de_StructureList(__getArrayIfSingleItem(output[_mSL][_i]), context); @@ -1718,7 +1718,7 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa if (output[_f] != null) { contents[_f] = __expectString(output[_f]); } - if (output.values === "") { + if (String(output.values).trim() === "") { contents[_va] = []; } else if (output[_va] != null && output[_va][_m] != null) { contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); diff --git a/private/aws-protocoltests-query/src/protocols/Aws_query.ts b/private/aws-protocoltests-query/src/protocols/Aws_query.ts index cdd4cc02e1b8..709ff55a0653 100644 --- a/private/aws-protocoltests-query/src/protocols/Aws_query.ts +++ b/private/aws-protocoltests-query/src/protocols/Aws_query.ts @@ -1868,7 +1868,7 @@ const de_EmptyInputAndEmptyOutputOutput = (output: any, context: __SerdeContext) */ const de_FlattenedXmlMapOutput = (output: any, context: __SerdeContext): FlattenedXmlMapOutput => { const contents: any = {}; - if (output.myMap === "") { + if (String(output.myMap).trim() === "") { contents[_mM] = {}; } else if (output[_mM] != null) { contents[_mM] = de_FooEnumMap(__getArrayIfSingleItem(output[_mM]), context); @@ -1884,7 +1884,7 @@ const de_FlattenedXmlMapWithXmlNameOutput = ( context: __SerdeContext ): FlattenedXmlMapWithXmlNameOutput => { const contents: any = {}; - if (output.KVP === "") { + if (String(output.KVP).trim() === "") { contents[_mM] = {}; } else if (output[_KVP] != null) { contents[_mM] = de_FlattenedXmlMapWithXmlNameOutputMap(__getArrayIfSingleItem(output[_KVP]), context); @@ -1913,7 +1913,7 @@ const de_FlattenedXmlMapWithXmlNamespaceOutput = ( context: __SerdeContext ): FlattenedXmlMapWithXmlNamespaceOutput => { const contents: any = {}; - if (output.KVP === "") { + if (String(output.KVP).trim() === "") { contents[_mM] = {}; } else if (output[_KVP] != null) { contents[_mM] = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(output[_KVP]), context); @@ -2146,17 +2146,17 @@ const de_XmlEnumsOutput = (output: any, context: __SerdeContext): XmlEnumsOutput if (output[_fEoo] != null) { contents[_fEoo] = __expectString(output[_fEoo]); } - if (output.fooEnumList === "") { + if (String(output.fooEnumList).trim() === "") { contents[_fEL] = []; } else if (output[_fEL] != null && output[_fEL][_m] != null) { contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(output[_fEL][_m]), context); } - if (output.fooEnumSet === "") { + if (String(output.fooEnumSet).trim() === "") { contents[_fES] = []; } else if (output[_fES] != null && output[_fES][_m] != null) { contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(output[_fES][_m]), context); } - if (output.fooEnumMap === "") { + if (String(output.fooEnumMap).trim() === "") { contents[_fEM] = {}; } else if (output[_fEM] != null && output[_fEM][_en] != null) { contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(output[_fEM][_en]), context); @@ -2178,17 +2178,17 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums if (output[_iEnt] != null) { contents[_iEnt] = __strictParseInt32(output[_iEnt]) as number; } - if (output.intEnumList === "") { + if (String(output.intEnumList).trim() === "") { contents[_iEL] = []; } else if (output[_iEL] != null && output[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } - if (output.intEnumSet === "") { + if (String(output.intEnumSet).trim() === "") { contents[_iES] = []; } else if (output[_iES] != null && output[_iES][_m] != null) { contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(output[_iES][_m]), context); } - if (output.intEnumMap === "") { + if (String(output.intEnumMap).trim() === "") { contents[_iEM] = {}; } else if (output[_iEM] != null && output[_iEM][_en] != null) { contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(output[_iEM][_en]), context); @@ -2201,72 +2201,72 @@ const de_XmlIntEnumsOutput = (output: any, context: __SerdeContext): XmlIntEnums */ const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput => { const contents: any = {}; - if (output.stringList === "") { + if (String(output.stringList).trim() === "") { contents[_sL] = []; } else if (output[_sL] != null && output[_sL][_m] != null) { contents[_sL] = de_StringList(__getArrayIfSingleItem(output[_sL][_m]), context); } - if (output.stringSet === "") { + if (String(output.stringSet).trim() === "") { contents[_sS] = []; } else if (output[_sS] != null && output[_sS][_m] != null) { contents[_sS] = de_StringSet(__getArrayIfSingleItem(output[_sS][_m]), context); } - if (output.integerList === "") { + if (String(output.integerList).trim() === "") { contents[_iL] = []; } else if (output[_iL] != null && output[_iL][_m] != null) { contents[_iL] = de_IntegerList(__getArrayIfSingleItem(output[_iL][_m]), context); } - if (output.booleanList === "") { + if (String(output.booleanList).trim() === "") { contents[_bL] = []; } else if (output[_bL] != null && output[_bL][_m] != null) { contents[_bL] = de_BooleanList(__getArrayIfSingleItem(output[_bL][_m]), context); } - if (output.timestampList === "") { + if (String(output.timestampList).trim() === "") { contents[_tL] = []; } else if (output[_tL] != null && output[_tL][_m] != null) { contents[_tL] = de_TimestampList(__getArrayIfSingleItem(output[_tL][_m]), context); } - if (output.enumList === "") { + if (String(output.enumList).trim() === "") { contents[_eL] = []; } else if (output[_eL] != null && output[_eL][_m] != null) { contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(output[_eL][_m]), context); } - if (output.intEnumList === "") { + if (String(output.intEnumList).trim() === "") { contents[_iEL] = []; } else if (output[_iEL] != null && output[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(output[_iEL][_m]), context); } - if (output.nestedStringList === "") { + if (String(output.nestedStringList).trim() === "") { contents[_nSL] = []; } else if (output[_nSL] != null && output[_nSL][_m] != null) { contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(output[_nSL][_m]), context); } - if (output.renamed === "") { + if (String(output.renamed).trim() === "") { contents[_rLM] = []; } else if (output[_r] != null && output[_r][_i] != null) { contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(output[_r][_i]), context); } - if (output.flattenedList === "") { + if (String(output.flattenedList).trim() === "") { contents[_fL] = []; } else if (output[_fL] != null) { contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(output[_fL]), context); } - if (output.customName === "") { + if (String(output.customName).trim() === "") { contents[_fLl] = []; } else if (output[_cN] != null) { contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(output[_cN]), context); } - if (output.flattenedListWithMemberNamespace === "") { + if (String(output.flattenedListWithMemberNamespace).trim() === "") { contents[_fLWMN] = []; } else if (output[_fLWMN] != null) { contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(output[_fLWMN]), context); } - if (output.flattenedListWithNamespace === "") { + if (String(output.flattenedListWithNamespace).trim() === "") { contents[_fLWN] = []; } else if (output[_fLWN] != null) { contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(output[_fLWN]), context); } - if (output.myStructureList === "") { + if (String(output.myStructureList).trim() === "") { contents[_sLt] = []; } else if (output[_mSL] != null && output[_mSL][_i] != null) { contents[_sLt] = de_StructureList(__getArrayIfSingleItem(output[_mSL][_i]), context); @@ -2279,7 +2279,7 @@ const de_XmlListsOutput = (output: any, context: __SerdeContext): XmlListsOutput */ const de_XmlMapsOutput = (output: any, context: __SerdeContext): XmlMapsOutput => { const contents: any = {}; - if (output.myMap === "") { + if (String(output.myMap).trim() === "") { contents[_mM] = {}; } else if (output[_mM] != null && output[_mM][_en] != null) { contents[_mM] = de_XmlMapsOutputMap(__getArrayIfSingleItem(output[_mM][_en]), context); @@ -2305,7 +2305,7 @@ const de_XmlMapsOutputMap = (output: any, context: __SerdeContext): Record { const contents: any = {}; - if (output.myMap === "") { + if (String(output.myMap).trim() === "") { contents[_mM] = {}; } else if (output[_mM] != null && output[_mM][_en] != null) { contents[_mM] = de_XmlMapsXmlNameOutputMap(__getArrayIfSingleItem(output[_mM][_en]), context); @@ -2345,7 +2345,7 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa if (output[_f] != null) { contents[_f] = __expectString(output[_f]); } - if (output.values === "") { + if (String(output.values).trim() === "") { contents[_va] = []; } else if (output[_va] != null && output[_va][_m] != null) { contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); diff --git a/private/aws-protocoltests-restxml-schema/package.json b/private/aws-protocoltests-restxml-schema/package.json index 4c5c21006fe0..deffac69b681 100644 --- a/private/aws-protocoltests-restxml-schema/package.json +++ b/private/aws-protocoltests-restxml-schema/package.json @@ -60,6 +60,7 @@ "@smithy/util-stream": "^4.3.2", "@smithy/util-utf8": "^4.1.0", "entities": "2.2.0", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "devDependencies": { diff --git a/private/aws-protocoltests-restxml/package.json b/private/aws-protocoltests-restxml/package.json index 5c5b48df52f4..f7b9f8c03e1b 100644 --- a/private/aws-protocoltests-restxml/package.json +++ b/private/aws-protocoltests-restxml/package.json @@ -62,6 +62,7 @@ "@smithy/util-utf8": "^4.1.0", "@types/uuid": "^9.0.1", "entities": "2.2.0", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2", "uuid": "^9.0.1" }, diff --git a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts index 8262a7d9d7e4..5a950691e972 100644 --- a/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts +++ b/private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts @@ -1962,7 +1962,7 @@ export const de_FlattenedXmlMapCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.myMap === "") { + if (String(data.myMap).trim() === "") { contents[_mM] = {}; } else if (data[_mM] != null) { contents[_mM] = de_FooEnumMap(__getArrayIfSingleItem(data[_mM]), context); @@ -1984,7 +1984,7 @@ export const de_FlattenedXmlMapWithXmlNameCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.KVP === "") { + if (String(data.KVP).trim() === "") { contents[_mM] = {}; } else if (data[_KVP] != null) { contents[_mM] = de_FlattenedXmlMapWithXmlNameInputOutputMap(__getArrayIfSingleItem(data[_KVP]), context); @@ -2006,7 +2006,7 @@ export const de_FlattenedXmlMapWithXmlNamespaceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.KVP === "") { + if (String(data.KVP).trim() === "") { contents[_mM] = {}; } else if (data[_KVP] != null) { contents[_mM] = de_FlattenedXmlMapWithXmlNamespaceOutputMap(__getArrayIfSingleItem(data[_KVP]), context); @@ -2466,12 +2466,12 @@ export const de_NestedXmlMapsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.flatNestedMap === "") { + if (String(data.flatNestedMap).trim() === "") { contents[_fNM] = {}; } else if (data[_fNM] != null) { contents[_fNM] = de_NestedMap(__getArrayIfSingleItem(data[_fNM]), context); } - if (data.nestedMap === "") { + if (String(data.nestedMap).trim() === "") { contents[_nM] = {}; } else if (data[_nM] != null && data[_nM][_en] != null) { contents[_nM] = de_NestedMap(__getArrayIfSingleItem(data[_nM][_en]), context); @@ -2493,7 +2493,7 @@ export const de_NestedXmlMapWithXmlNameCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.nestedXmlMapWithXmlNameMap === "") { + if (String(data.nestedXmlMapWithXmlNameMap).trim() === "") { contents[_nXMWXNM] = {}; } else if (data[_nXMWXNM] != null && data[_nXMWXNM][_en] != null) { contents[_nXMWXNM] = de_NestedXmlMapWithXmlNameMap(__getArrayIfSingleItem(data[_nXMWXNM][_en]), context); @@ -2862,77 +2862,77 @@ export const de_XmlEmptyListsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.booleanList === "") { + if (String(data.booleanList).trim() === "") { contents[_bL] = []; } else if (data[_bL] != null && data[_bL][_m] != null) { contents[_bL] = de_BooleanList(__getArrayIfSingleItem(data[_bL][_m]), context); } - if (data.enumList === "") { + if (String(data.enumList).trim() === "") { contents[_eL] = []; } else if (data[_eL] != null && data[_eL][_m] != null) { contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(data[_eL][_m]), context); } - if (data.flattenedList === "") { + if (String(data.flattenedList).trim() === "") { contents[_fL] = []; } else if (data[_fL] != null) { contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(data[_fL]), context); } - if (data.customName === "") { + if (String(data.customName).trim() === "") { contents[_fLl] = []; } else if (data[_cN] != null) { contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(data[_cN]), context); } - if (data.flattenedListWithMemberNamespace === "") { + if (String(data.flattenedListWithMemberNamespace).trim() === "") { contents[_fLWMN] = []; } else if (data[_fLWMN] != null) { contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(data[_fLWMN]), context); } - if (data.flattenedListWithNamespace === "") { + if (String(data.flattenedListWithNamespace).trim() === "") { contents[_fLWN] = []; } else if (data[_fLWN] != null) { contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(data[_fLWN]), context); } - if (data.flattenedStructureList === "") { + if (String(data.flattenedStructureList).trim() === "") { contents[_fSL] = []; } else if (data[_fSL] != null) { contents[_fSL] = de_StructureList(__getArrayIfSingleItem(data[_fSL]), context); } - if (data.intEnumList === "") { + if (String(data.intEnumList).trim() === "") { contents[_iEL] = []; } else if (data[_iEL] != null && data[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } - if (data.integerList === "") { + if (String(data.integerList).trim() === "") { contents[_iL] = []; } else if (data[_iL] != null && data[_iL][_m] != null) { contents[_iL] = de_IntegerList(__getArrayIfSingleItem(data[_iL][_m]), context); } - if (data.nestedStringList === "") { + if (String(data.nestedStringList).trim() === "") { contents[_nSL] = []; } else if (data[_nSL] != null && data[_nSL][_m] != null) { contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(data[_nSL][_m]), context); } - if (data.renamed === "") { + if (String(data.renamed).trim() === "") { contents[_rLM] = []; } else if (data[_r] != null && data[_r][_i] != null) { contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(data[_r][_i]), context); } - if (data.stringList === "") { + if (String(data.stringList).trim() === "") { contents[_sL] = []; } else if (data[_sL] != null && data[_sL][_m] != null) { contents[_sL] = de_StringList(__getArrayIfSingleItem(data[_sL][_m]), context); } - if (data.stringSet === "") { + if (String(data.stringSet).trim() === "") { contents[_sS] = []; } else if (data[_sS] != null && data[_sS][_m] != null) { contents[_sS] = de_StringSet(__getArrayIfSingleItem(data[_sS][_m]), context); } - if (data.myStructureList === "") { + if (String(data.myStructureList).trim() === "") { contents[_sLt] = []; } else if (data[_mSL] != null && data[_mSL][_i] != null) { contents[_sLt] = de_StructureList(__getArrayIfSingleItem(data[_mSL][_i]), context); } - if (data.timestampList === "") { + if (String(data.timestampList).trim() === "") { contents[_tL] = []; } else if (data[_tL] != null && data[_tL][_m] != null) { contents[_tL] = de_TimestampList(__getArrayIfSingleItem(data[_tL][_m]), context); @@ -2954,7 +2954,7 @@ export const de_XmlEmptyMapsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.myMap === "") { + if (String(data.myMap).trim() === "") { contents[_mM] = {}; } else if (data[_mM] != null && data[_mM][_en] != null) { contents[_mM] = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); @@ -3005,17 +3005,17 @@ export const de_XmlEnumsCommand = async ( if (data[_fEoo] != null) { contents[_fEoo] = __expectString(data[_fEoo]); } - if (data.fooEnumList === "") { + if (String(data.fooEnumList).trim() === "") { contents[_fEL] = []; } else if (data[_fEL] != null && data[_fEL][_m] != null) { contents[_fEL] = de_FooEnumList(__getArrayIfSingleItem(data[_fEL][_m]), context); } - if (data.fooEnumMap === "") { + if (String(data.fooEnumMap).trim() === "") { contents[_fEM] = {}; } else if (data[_fEM] != null && data[_fEM][_en] != null) { contents[_fEM] = de_FooEnumMap(__getArrayIfSingleItem(data[_fEM][_en]), context); } - if (data.fooEnumSet === "") { + if (String(data.fooEnumSet).trim() === "") { contents[_fES] = []; } else if (data[_fES] != null && data[_fES][_m] != null) { contents[_fES] = de_FooEnumSet(__getArrayIfSingleItem(data[_fES][_m]), context); @@ -3046,17 +3046,17 @@ export const de_XmlIntEnumsCommand = async ( if (data[_iEnt] != null) { contents[_iEnt] = __strictParseInt32(data[_iEnt]) as number; } - if (data.intEnumList === "") { + if (String(data.intEnumList).trim() === "") { contents[_iEL] = []; } else if (data[_iEL] != null && data[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } - if (data.intEnumMap === "") { + if (String(data.intEnumMap).trim() === "") { contents[_iEM] = {}; } else if (data[_iEM] != null && data[_iEM][_en] != null) { contents[_iEM] = de_IntegerEnumMap(__getArrayIfSingleItem(data[_iEM][_en]), context); } - if (data.intEnumSet === "") { + if (String(data.intEnumSet).trim() === "") { contents[_iES] = []; } else if (data[_iES] != null && data[_iES][_m] != null) { contents[_iES] = de_IntegerEnumSet(__getArrayIfSingleItem(data[_iES][_m]), context); @@ -3078,77 +3078,77 @@ export const de_XmlListsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.booleanList === "") { + if (String(data.booleanList).trim() === "") { contents[_bL] = []; } else if (data[_bL] != null && data[_bL][_m] != null) { contents[_bL] = de_BooleanList(__getArrayIfSingleItem(data[_bL][_m]), context); } - if (data.enumList === "") { + if (String(data.enumList).trim() === "") { contents[_eL] = []; } else if (data[_eL] != null && data[_eL][_m] != null) { contents[_eL] = de_FooEnumList(__getArrayIfSingleItem(data[_eL][_m]), context); } - if (data.flattenedList === "") { + if (String(data.flattenedList).trim() === "") { contents[_fL] = []; } else if (data[_fL] != null) { contents[_fL] = de_RenamedListMembers(__getArrayIfSingleItem(data[_fL]), context); } - if (data.customName === "") { + if (String(data.customName).trim() === "") { contents[_fLl] = []; } else if (data[_cN] != null) { contents[_fLl] = de_RenamedListMembers(__getArrayIfSingleItem(data[_cN]), context); } - if (data.flattenedListWithMemberNamespace === "") { + if (String(data.flattenedListWithMemberNamespace).trim() === "") { contents[_fLWMN] = []; } else if (data[_fLWMN] != null) { contents[_fLWMN] = de_ListWithMemberNamespace(__getArrayIfSingleItem(data[_fLWMN]), context); } - if (data.flattenedListWithNamespace === "") { + if (String(data.flattenedListWithNamespace).trim() === "") { contents[_fLWN] = []; } else if (data[_fLWN] != null) { contents[_fLWN] = de_ListWithNamespace(__getArrayIfSingleItem(data[_fLWN]), context); } - if (data.flattenedStructureList === "") { + if (String(data.flattenedStructureList).trim() === "") { contents[_fSL] = []; } else if (data[_fSL] != null) { contents[_fSL] = de_StructureList(__getArrayIfSingleItem(data[_fSL]), context); } - if (data.intEnumList === "") { + if (String(data.intEnumList).trim() === "") { contents[_iEL] = []; } else if (data[_iEL] != null && data[_iEL][_m] != null) { contents[_iEL] = de_IntegerEnumList(__getArrayIfSingleItem(data[_iEL][_m]), context); } - if (data.integerList === "") { + if (String(data.integerList).trim() === "") { contents[_iL] = []; } else if (data[_iL] != null && data[_iL][_m] != null) { contents[_iL] = de_IntegerList(__getArrayIfSingleItem(data[_iL][_m]), context); } - if (data.nestedStringList === "") { + if (String(data.nestedStringList).trim() === "") { contents[_nSL] = []; } else if (data[_nSL] != null && data[_nSL][_m] != null) { contents[_nSL] = de_NestedStringList(__getArrayIfSingleItem(data[_nSL][_m]), context); } - if (data.renamed === "") { + if (String(data.renamed).trim() === "") { contents[_rLM] = []; } else if (data[_r] != null && data[_r][_i] != null) { contents[_rLM] = de_RenamedListMembers(__getArrayIfSingleItem(data[_r][_i]), context); } - if (data.stringList === "") { + if (String(data.stringList).trim() === "") { contents[_sL] = []; } else if (data[_sL] != null && data[_sL][_m] != null) { contents[_sL] = de_StringList(__getArrayIfSingleItem(data[_sL][_m]), context); } - if (data.stringSet === "") { + if (String(data.stringSet).trim() === "") { contents[_sS] = []; } else if (data[_sS] != null && data[_sS][_m] != null) { contents[_sS] = de_StringSet(__getArrayIfSingleItem(data[_sS][_m]), context); } - if (data.myStructureList === "") { + if (String(data.myStructureList).trim() === "") { contents[_sLt] = []; } else if (data[_mSL] != null && data[_mSL][_i] != null) { contents[_sLt] = de_StructureList(__getArrayIfSingleItem(data[_mSL][_i]), context); } - if (data.timestampList === "") { + if (String(data.timestampList).trim() === "") { contents[_tL] = []; } else if (data[_tL] != null && data[_tL][_m] != null) { contents[_tL] = de_TimestampList(__getArrayIfSingleItem(data[_tL][_m]), context); @@ -3170,7 +3170,7 @@ export const de_XmlMapsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.myMap === "") { + if (String(data.myMap).trim() === "") { contents[_mM] = {}; } else if (data[_mM] != null && data[_mM][_en] != null) { contents[_mM] = de_XmlMapsInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); @@ -3192,7 +3192,7 @@ export const de_XmlMapsXmlNameCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.myMap === "") { + if (String(data.myMap).trim() === "") { contents[_mM] = {}; } else if (data[_mM] != null && data[_mM][_en] != null) { contents[_mM] = de_XmlMapsXmlNameInputOutputMap(__getArrayIfSingleItem(data[_mM][_en]), context); @@ -3214,7 +3214,7 @@ export const de_XmlMapWithXmlNamespaceCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.KVP === "") { + if (String(data.KVP).trim() === "") { contents[_mM] = {}; } else if (data[_KVP] != null && data[_KVP][_en] != null) { contents[_mM] = de_XmlMapWithXmlNamespaceInputOutputMap(__getArrayIfSingleItem(data[_KVP][_en]), context); @@ -3294,7 +3294,7 @@ export const de_XmlUnionsCommand = async ( $metadata: deserializeMetadata(output), }); const data: Record = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - if (data.unionValue === "") { + if (String(data.unionValue).trim() === "") { // Pass empty tags. } else if (data[_uV] != null) { contents[_uV] = de_XmlUnionShape(__expectUnion(data[_uV]), context); @@ -4277,7 +4277,7 @@ const de_XmlNamespaceNested = (output: any, context: __SerdeContext): XmlNamespa if (output[_f] != null) { contents[_f] = __expectString(output[_f]); } - if (output.values === "") { + if (String(output.values).trim() === "") { contents[_va] = []; } else if (output[_va] != null && output[_va][_m] != null) { contents[_va] = de_XmlNamespacedList(__getArrayIfSingleItem(output[_va][_m]), context); @@ -4361,7 +4361,7 @@ const de_XmlUnionShape = (output: any, context: __SerdeContext): XmlUnionShape = doubleValue: __strictParseFloat(output[_dV]) as number, }; } - if (output.unionValue === "") { + if (String(output.unionValue).trim() === "") { // Pass empty tags. } else if (output[_uV] != null) { return { diff --git a/yarn.lock b/yarn.lock index 020a956a1b0e..1ec3d3890531 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1181,6 +1181,7 @@ __metadata: concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" entities: "npm:2.2.0" + fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -1240,6 +1241,7 @@ __metadata: concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" entities: "npm:2.2.0" + fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -33985,6 +33987,17 @@ __metadata: languageName: node linkType: hard +"fast-xml-parser@npm:5.2.5": + version: 5.2.5 + resolution: "fast-xml-parser@npm:5.2.5" + dependencies: + strnum: "npm:^2.1.0" + bin: + fxparser: src/cli/cli.js + checksum: 10c0/d1057d2e790c327ccfc42b872b91786a4912a152d44f9507bf053f800102dfb07ece3da0a86b33ff6a0caa5a5cad86da3326744f6ae5efb0c6c571d754fe48cd + languageName: node + linkType: hard + "fastest-levenshtein@npm:^1.0.12": version: 1.0.16 resolution: "fastest-levenshtein@npm:1.0.16" @@ -40838,6 +40851,13 @@ __metadata: languageName: node linkType: hard +"strnum@npm:^2.1.0": + version: 2.1.1 + resolution: "strnum@npm:2.1.1" + checksum: 10c0/1f9bd1f9b4c68333f25c2b1f498ea529189f060cd50aa59f1876139c994d817056de3ce57c12c970f80568d75df2289725e218bd9e3cdf73cd1a876c9c102733 + languageName: node + linkType: hard + "strong-log-transformer@npm:^2.1.0": version: 2.1.0 resolution: "strong-log-transformer@npm:2.1.0" From 0cfc2e545db6aa666c3be7fdf32be69921e8691f Mon Sep 17 00:00:00 2001 From: George Fu Date: Thu, 18 Sep 2025 10:57:10 -0400 Subject: [PATCH 5/5] feat(xml-builder): restore fast-xml-parser in Node.js --- packages/xml-builder/package.json | 2 +- .../xml-builder/src/xml-parser.browser.ts | 2 +- packages/xml-builder/src/xml-parser.spec.ts | 4 +- packages/xml-builder/src/xml-parser.ts | 104 +++--------------- yarn.lock | 9 +- 5 files changed, 18 insertions(+), 103 deletions(-) diff --git a/packages/xml-builder/package.json b/packages/xml-builder/package.json index 699f9a2da793..d5d9832c261f 100644 --- a/packages/xml-builder/package.json +++ b/packages/xml-builder/package.json @@ -4,7 +4,7 @@ "description": "XML builder for the AWS SDK", "dependencies": { "@smithy/types": "^4.5.0", - "@xmldom/xmldom": "0.8.11", + "fast-xml-parser": "5.2.5", "tslib": "^2.6.2" }, "scripts": { diff --git a/packages/xml-builder/src/xml-parser.browser.ts b/packages/xml-builder/src/xml-parser.browser.ts index 068e54e41ea5..3b43833e7cd4 100644 --- a/packages/xml-builder/src/xml-parser.browser.ts +++ b/packages/xml-builder/src/xml-parser.browser.ts @@ -3,7 +3,7 @@ const parser = new DOMParser(); /** * Cases where this differs from fast-xml-parser: * - * 1. mixing text with nested tags + * 1. Mixing text with nested tags (does not occur in AWS REST XML). * hello, world, how are you? * * @internal diff --git a/packages/xml-builder/src/xml-parser.spec.ts b/packages/xml-builder/src/xml-parser.spec.ts index 3c841c5d2fa5..84da2a9e48d6 100644 --- a/packages/xml-builder/src/xml-parser.spec.ts +++ b/packages/xml-builder/src/xml-parser.spec.ts @@ -89,11 +89,11 @@ describe("xml parsing", () => { `; const object = parse(xml); - expect(object).toEqual({ + expect(object).toMatchObject({ XmlEmptyMapsResponse: { xmlns: "https://example.com/", XmlEmptyMapsResult: { - myMap: "\n ", + myMap: /\s*/, }, }, }); diff --git a/packages/xml-builder/src/xml-parser.ts b/packages/xml-builder/src/xml-parser.ts index 4f4e5cdd7b99..73ce2c5cdda7 100644 --- a/packages/xml-builder/src/xml-parser.ts +++ b/packages/xml-builder/src/xml-parser.ts @@ -1,98 +1,20 @@ -// -// -// const parser = new XMLParser({ -// attributeNamePrefix: "", -// htmlEntities: true, -// ignoreAttributes: false, -// ignoreDeclaration: true, -// parseTagValue: false, -// trimValues: false, -// tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), -// }); -// parser.addEntity("#xD", "\r"); -// parser.addEntity("#10", "\n"); - -// export function parseXML(xmlString: string): any { -// return parser.parse(xmlString, true); -// } - -// temporary replacement for compatibility testing. -import { DOMParser } from "@xmldom/xmldom"; -const parser = new DOMParser({ - locator: {}, - errorHandler: (err) => { - throw new Error(err); - }, +import { XMLParser } from "fast-xml-parser"; + +const parser = new XMLParser({ + attributeNamePrefix: "", + htmlEntities: true, + ignoreAttributes: false, + ignoreDeclaration: true, + parseTagValue: false, + trimValues: false, + tagValueProcessor: (_: any, val: any) => (val.trim() === "" && val.includes("\n") ? "" : undefined), }); +parser.addEntity("#xD", "\r"); +parser.addEntity("#10", "\n"); /** - * Cases where this differs from fast-xml-parser: - * - * 1. mixing text with nested tags - * hello, world, how are you? - * * @internal */ export function parseXML(xmlString: string): any { - const xmlDocument = parser.parseFromString(xmlString, "application/xml"); - - if (xmlDocument.getElementsByTagName("parsererror").length > 0) { - throw new Error("DOMParser XML parsing error."); - } - - // Recursive function to convert XML nodes to JS object - const xmlToObj = (node: Node): any => { - if (node.nodeType === 3) { - if (node.textContent?.trim()) { - return node.textContent; - } - } - - if (node.nodeType === 1) { - const element = node as Element; - if (element.attributes.length === 0 && element.childNodes.length === 0) { - return ""; - } - - const obj: any = {}; - - const attributes = Array.from(element.attributes); - for (const attr of attributes) { - obj[`${attr.name}`] = attr.value; - } - - const childNodes = Array.from(element.childNodes); - for (const child of childNodes) { - const childResult = xmlToObj(child); - - if (childResult != null) { - const childName = child.nodeName; - - if (childNodes.length === 1 && attributes.length === 0 && childName === "#text") { - return childResult; - } - - if (obj[childName]) { - if (Array.isArray(obj[childName])) { - obj[childName].push(childResult); - } else { - obj[childName] = [obj[childName], childResult]; - } - } else { - obj[childName] = childResult; - } - } else if (childNodes.length === 1 && attributes.length === 0) { - return element.textContent; - } - } - - return obj; - } - - return null; - }; - - return { - [xmlDocument.documentElement.nodeName]: xmlToObj(xmlDocument.documentElement), - }; + return parser.parse(xmlString, true); } diff --git a/yarn.lock b/yarn.lock index 1ec3d3890531..41514863e4a4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -25007,9 +25007,9 @@ __metadata: dependencies: "@smithy/types": "npm:^4.5.0" "@tsconfig/recommended": "npm:1.0.1" - "@xmldom/xmldom": "npm:0.8.11" concurrently: "npm:7.0.0" downlevel-dts: "npm:0.10.1" + fast-xml-parser: "npm:5.2.5" rimraf: "npm:3.0.2" tslib: "npm:^2.6.2" typescript: "npm:~5.8.3" @@ -30538,13 +30538,6 @@ __metadata: languageName: node linkType: hard -"@xmldom/xmldom@npm:0.8.11": - version: 0.8.11 - resolution: "@xmldom/xmldom@npm:0.8.11" - checksum: 10c0/e768623de72c95d3dae6b5da8e33dda0d81665047811b5498d23a328d45b13feb5536fe921d0308b96a4a8dd8addf80b1f6ef466508051c0b581e63e0dc74ed5 - languageName: node - linkType: hard - "@xtuc/ieee754@npm:^1.2.0": version: 1.2.0 resolution: "@xtuc/ieee754@npm:1.2.0"